summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-07-12 15:34:34 (GMT)
committerGuido van Rossum <guido@python.org>1995-07-12 15:34:34 (GMT)
commit7f64e2497cbaccdc60281cebac5b0fb7ca2e0336 (patch)
tree597cb6c706f15574806f0aa633be90ace50261c9 /Lib
parent1311e3ce73263854e3899d14cc636ccfa166eebf (diff)
downloadcpython-7f64e2497cbaccdc60281cebac5b0fb7ca2e0336.zip
cpython-7f64e2497cbaccdc60281cebac5b0fb7ca2e0336.tar.gz
cpython-7f64e2497cbaccdc60281cebac5b0fb7ca2e0336.tar.bz2
Official version 1.26 directly from Ken
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/newimp.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/newimp.py b/Lib/newimp.py
index 3851696..231a33d 100755
--- a/Lib/newimp.py
+++ b/Lib/newimp.py
@@ -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):