diff options
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/compiler/compiler/symbols.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/compiler/compiler/symbols.py b/Tools/compiler/compiler/symbols.py index 946a8b1..bf9a724 100644 --- a/Tools/compiler/compiler/symbols.py +++ b/Tools/compiler/compiler/symbols.py @@ -321,7 +321,7 @@ class SymbolVisitor: self.visit(n, scope, 0) def visitSlice(self, node, scope, assign=0): - self.visit(node.expr, scope, assign) + self.visit(node.expr, scope, 0) if node.lower: self.visit(node.lower, scope, 0) if node.upper: @@ -353,7 +353,7 @@ class SymbolVisitor: # a yield statement signals a generator def visitYield(self, node, scope): - self.generator = 1 + scope.generator = 1 self.visit(node.value, scope) def sort(l): |