summaryrefslogtreecommitdiffstats
path: root/Lib/py_compile.py
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-02-20 01:00:11 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-02-20 01:00:11 (GMT)
commitc32b678fd057f10ef1bf8999b7785f51e0e5f81b (patch)
treeb3ce1c465cf5be79a2c92b08c0d44940b9e195d3 /Lib/py_compile.py
parent5aff27aec18e08365891c4bc1d81cca87d9d49fd (diff)
downloadcpython-c32b678fd057f10ef1bf8999b7785f51e0e5f81b.zip
cpython-c32b678fd057f10ef1bf8999b7785f51e0e5f81b.tar.gz
cpython-c32b678fd057f10ef1bf8999b7785f51e0e5f81b.tar.bz2
#7842: backport fix for py_compile.compile syntax error message handling.
Diffstat (limited to 'Lib/py_compile.py')
-rw-r--r--Lib/py_compile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
index dc1cae9..c0bc1e4 100644
--- a/Lib/py_compile.py
+++ b/Lib/py_compile.py
@@ -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: