[pypy-commit] pypy py3k: Fix a nasty crash with the "global" keyword.
amauryfa
noreply at buildbot.pypy.org
Wed Oct 19 01:43:20 CEST 2011
Author: Amaury Forgeot d'Arc <amauryfa at 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:
More information about the pypy-commit
mailing list