Author: Amaury Forgeot d'Arc <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to