Kaydet (Commit) bd4a63e0 authored tarafından Guido van Rossum's avatar Guido van Rossum

A small tweak to avoid calling traceback.format_exception_only() with

a bogus (tuple) value.  This should fix the "make install" issue Neal
reported.
üst 5590d8cc
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment