[pypy-commit] pypy py3k: Remove "except Exception, e" syntax.
amauryfa
noreply at buildbot.pypy.org
Sat Dec 17 23:01:08 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r50641:4c7922f5a847
Date: 2011-12-17 18:41 +0100
http://bitbucket.org/pypy/pypy/changeset/4c7922f5a847/
Log: Remove "except Exception, e" syntax. Expected to break a lot of
code...
diff --git a/pypy/interpreter/pyparser/data/Grammar3.2 b/pypy/interpreter/pyparser/data/Grammar3.2
--- a/pypy/interpreter/pyparser/data/Grammar3.2
+++ b/pypy/interpreter/pyparser/data/Grammar3.2
@@ -75,7 +75,7 @@
with_stmt: 'with' with_item (',' with_item)* ':' suite
with_item: test ['as' expr]
# NB compile.c makes sure that the default except clause is last
-except_clause: 'except' [test [('as' | ',') test]]
+except_clause: 'except' [test ['as' NAME]]
suite: simple_stmt | NEWLINE INDENT stmt+ DEDENT
# Backward compatibility cruft to support:
More information about the pypy-commit
mailing list