Author: Amaury Forgeot d'Arc <amaur...@gmail.com> Branch: py3k Changeset: r48217:c53430cd1712 Date: 2011-10-18 21:44 +0200 http://bitbucket.org/pypy/pypy/changeset/c53430cd1712/
Log: Fix a nasty crash with the "global" keyword. Unfortunately I could not find any failing test for this... diff --git a/pypy/interpreter/astcompiler/symtable.py b/pypy/interpreter/astcompiler/symtable.py --- a/pypy/interpreter/astcompiler/symtable.py +++ b/pypy/interpreter/astcompiler/symtable.py @@ -236,7 +236,7 @@ # Special-case super: it counts as a use of __class__ if role == SYM_USED and identifier == 'super': self.note_symbol('@__class__', SYM_USED) - Scope.note_symbol(self, identifier, role) + return Scope.note_symbol(self, identifier, role) def note_yield(self, yield_node): if self.return_with_value: _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit