diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-07 20:54:48 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-07 20:54:48 (GMT) |
commit | 4e0e1b6a540e664e89739456db4c706701bf062b (patch) | |
tree | 6a144e54fe6f0055d6e412181df0bbad458f8b10 /Lib/compiler | |
parent | b7e898a0e2a8d4077cbabeada039200fde5ada60 (diff) | |
download | cpython-4e0e1b6a540e664e89739456db4c706701bf062b.zip cpython-4e0e1b6a540e664e89739456db4c706701bf062b.tar.gz cpython-4e0e1b6a540e664e89739456db4c706701bf062b.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib/compiler')
-rw-r--r-- | Lib/compiler/pycodegen.py | 2 | ||||
-rw-r--r-- | Lib/compiler/symbols.py | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Lib/compiler/pycodegen.py b/Lib/compiler/pycodegen.py index ef5a0d3..4d5f728 100644 --- a/Lib/compiler/pycodegen.py +++ b/Lib/compiler/pycodegen.py @@ -671,7 +671,7 @@ class CodeGenerator: def visitGenExprFor(self, node): start = self.newBlock() anchor = self.newBlock() - + if node.is_outmost: self.loadName('[outmost-iterable]') else: diff --git a/Lib/compiler/symbols.py b/Lib/compiler/symbols.py index 6843e19..e1581a4 100644 --- a/Lib/compiler/symbols.py +++ b/Lib/compiler/symbols.py @@ -260,13 +260,13 @@ class SymbolVisitor: def visitGenExprIf(self, node, scope): self.visit(node.test, scope) - + def visitLambda(self, node, parent, assign=0): # Lambda is an expression, so it could appear in an expression # context where assign is passed. The transformer should catch # any code that has a lambda on the left-hand side. - assert not assign - + assert not assign + for n in node.defaults: self.visit(n, parent) scope = LambdaScope(self.module, self.klass) |