diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2006-08-16 23:38:05 +0000 |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2006-08-16 23:38:05 +0000 |
commit | 4c6b0d5bec587770e0d83b550faae97fe251cc65 (patch) | |
tree | 1b472e824d748456dc4823ca047d67fd807c8d2f /Lib/compiler/ast.py | |
parent | 7ae354846fff616746eeba6d27ccd5c175591cae (diff) | |
download | cpython-git-4c6b0d5bec587770e0d83b550faae97fe251cc65.tar.gz |
Fix a bug in the ``compiler`` package that caused invalid code to be
generated for generator expressions.
Diffstat (limited to 'Lib/compiler/ast.py')
-rw-r--r-- | Lib/compiler/ast.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/compiler/ast.py b/Lib/compiler/ast.py index 8dcdf68ada..93437d6cee 100644 --- a/Lib/compiler/ast.py +++ b/Lib/compiler/ast.py @@ -583,11 +583,9 @@ class GenExpr(Node): def __init__(self, code, lineno=None): self.code = code self.lineno = lineno - self.argnames = ['[outmost-iterable]'] + self.argnames = ['.0'] self.varargs = self.kwargs = None - - def getChildren(self): return self.code, |