]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Official version 1.26 directly from Ken
authorGuido van Rossum <guido@python.org>
Wed, 12 Jul 1995 15:34:34 +0000 (15:34 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Jul 1995 15:34:34 +0000 (15:34 +0000)
Lib/newimp.py

index 3851696aa15f546947322b35d61f19537868ba9c..231a33dcea445f701bee8c60cf7fdfede87eb1ef 100755 (executable)
@@ -856,9 +856,9 @@ def load_module(theMod, ty, theFile, fromMod):
                sys.modules[name] = theMod
        except:
            # Provide import-nesting info, including signs of circularity:
-           raise sys.exc_type, import_trail_msg(str(sys.exc_value),# ==X
-                                                sys.exc_traceback,
-                                                name)
+               raise sys.exc_type, import_trail_msg(str(sys.exc_value),# ==X
+                                                    sys.exc_traceback,
+                                                    name)
     elif ty == PY_PACKAGE:
        # Load package constituents, doing the controlling module *if* it
        # exists *and* it isn't already in process:
@@ -1224,7 +1224,7 @@ def normalize_pathname(path):
     # We do a lot more when we have posix-style paths, eg os.sep == '/'.
 
     if os.sep != '/':
-       return os.path.join(os.getcwd(), path)                          # ==>
+       return os.path.join(os.getcwd, path)                            # ==>
 
     outwards, inwards = 0, []
     for nm in string.splitfields(path, os.sep):
@@ -1358,7 +1358,6 @@ def testExec(msg, execList, locals, globals):
     else:
        print ''
     for stmt in execList:
-       if VERBOSE: print "\t%s" % `stmt`
        exec stmt in locals, globals
 
 def test(number=0, leaveHiers=0):