diff options
author | Guido van Rossum <guido@python.org> | 2007-08-10 17:36:34 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-10 17:36:34 (GMT) |
commit | bd4a63e091ddb38a2d55d9c21eee8656863240ca (patch) | |
tree | b937e6d0eb549cc601674cb3ab954c8339b358e4 /Lib/py_compile.py | |
parent | 5590d8cc8af29f6d1ff2158ddbef0e457279c5f1 (diff) | |
download | cpython-bd4a63e091ddb38a2d55d9c21eee8656863240ca.zip cpython-bd4a63e091ddb38a2d55d9c21eee8656863240ca.tar.gz cpython-bd4a63e091ddb38a2d55d9c21eee8656863240ca.tar.bz2 |
A small tweak to avoid calling traceback.format_exception_only() with
a bogus (tuple) value. This should fix the "make install" issue Neal
reported.
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r-- | Lib/py_compile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 1d884d0..f7a2002 100644 --- a/Lib/py_compile.py +++ b/Lib/py_compile.py @@ -141,7 +141,7 @@ def compile(file, cfile=None, dfile=None, doraise=False): try: codeobject = __builtin__.compile(codestring, dfile or file,'exec') except Exception as err: - py_exc = PyCompileError(err.__class__,err.args,dfile or file) + py_exc = PyCompileError(err.__class__, err, dfile or file) if doraise: raise py_exc else: |