From: Guido van Rossum Date: Fri, 10 Aug 2007 17:36:34 +0000 (+0000) Subject: A small tweak to avoid calling traceback.format_exception_only() with X-Git-Tag: v3.0a1~465 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd4a63e091ddb38a2d55d9c21eee8656863240ca;p=python A small tweak to avoid calling traceback.format_exception_only() with a bogus (tuple) value. This should fix the "make install" issue Neal reported. --- diff --git a/Lib/py_compile.py b/Lib/py_compile.py index 1d884d008e..f7a200204c 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: