Commit c32b678f authored by R David Murray's avatar R David Murray

#7842: backport fix for py_compile.compile syntax error message handling.

parent 5aff27ae
......@@ -112,7 +112,7 @@ def compile(file, cfile=None, dfile=None, doraise=False):
try:
codeobject = __builtin__.compile(codestring, dfile or file,'exec')
except Exception,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:
......
......@@ -208,6 +208,8 @@ Core and Builtins
Library
-------
- Issue #7842: backported fix for py_compile.compile() syntax error handling.
- Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a unicode argument contains non-BMP character.
......
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