[Python-3000-checkins] r56901 - python/branches/py3k/Lib/py_compile.py

guido.van.rossum python-3000-checkins at python.org
Fri Aug 10 19:36:35 CEST 2007


Author: guido.van.rossum
Date: Fri Aug 10 19:36:34 2007
New Revision: 56901

Modified:
   python/branches/py3k/Lib/py_compile.py
Log:
A small tweak to avoid calling traceback.format_exception_only() with
a bogus (tuple) value.  This should fix the "make install" issue Neal
reported.


Modified: python/branches/py3k/Lib/py_compile.py
==============================================================================
--- python/branches/py3k/Lib/py_compile.py	(original)
+++ python/branches/py3k/Lib/py_compile.py	Fri Aug 10 19:36:34 2007
@@ -141,7 +141,7 @@
     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:


More information about the Python-3000-checkins mailing list