summaryrefslogtreecommitdiff
path: root/Lib/compiler/pycodegen.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-09-17 19:33:48 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2001-09-17 19:33:48 +0000
commit2e4cc7e0d84747826d3d2546d1bccd9c40a455c2 (patch)
tree7c9bcbb7414b9d94aee0ec20520a026bfdba17f4 /Lib/compiler/pycodegen.py
parentc299fc16f2a8572780d2130ab9e55a6f22a93279 (diff)
downloadcpython-git-2e4cc7e0d84747826d3d2546d1bccd9c40a455c2.tar.gz
Last set of change to get regression tests to pass
Remove the only test in the syntax module. It ends up that the transformer must handle this error case. In the transformer, check for a list compression in com_assign_list() by looking for a list_for node where a comma is expected. In pycodegen.compile() re-raise the SyntaxError rather than catching it and exiting
Diffstat (limited to 'Lib/compiler/pycodegen.py')
-rw-r--r--Lib/compiler/pycodegen.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py
index 04c115a7c3..7bc17958cf 100644
--- a/Lib/compiler/pycodegen.py
+++ b/Lib/compiler/pycodegen.py
@@ -49,7 +49,7 @@ def compile(filename, display=0):
try:
mod.compile(display)
except SyntaxError, err:
- print "SyntaxError:", err
+ raise
else:
f = open(filename + "c", "wb")
mod.dump(f)