]> granicus.if.org Git - python/commitdiff
A small tweak to avoid calling traceback.format_exception_only() with
authorGuido van Rossum <guido@python.org>
Fri, 10 Aug 2007 17:36:34 +0000 (17:36 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Aug 2007 17:36:34 +0000 (17:36 +0000)
a bogus (tuple) value.  This should fix the "make install" issue Neal
reported.

Lib/py_compile.py

index 1d884d008e7804f5e4850acc8bd7e8b91ada3856..f7a200204cad1259c3c78a01600ff85279750982 100644 (file)
@@ -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: