Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r95087:dd78db026ae0
Date: 2018-09-10 10:16 +0200
http://bitbucket.org/pypy/pypy/changeset/dd78db026ae0/

Log:    Fix for 6be2fb2a8b03 (issue2884)

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
@@ -436,6 +436,8 @@
             self.note_symbol(name, scope)
         else:
             target.walkabout(self)
+        if assign.value is not None:
+            assign.value.walkabout(self)
 
     def visit_ClassDef(self, clsdef):
         self.note_symbol(clsdef.name, SYM_ASSIGNED)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to