[pypy-commit] pypy default: grumble, grumble the annotator does't know the annotation of alias list
gutworth
noreply at buildbot.pypy.org
Thu Jul 14 16:27:38 CEST 2011
Author: Benjamin Peterson <benjamin at python.org>
Branch:
Changeset: r45596:63342a547bd7
Date: 2011-07-14 09:32 -0500
http://bitbucket.org/pypy/pypy/changeset/63342a547bd7/
Log: grumble, grumble the annotator does't know the annotation of alias
list
diff --git a/pypy/interpreter/astcompiler/misc.py b/pypy/interpreter/astcompiler/misc.py
--- a/pypy/interpreter/astcompiler/misc.py
+++ b/pypy/interpreter/astcompiler/misc.py
@@ -49,10 +49,11 @@
if stmt.module == "__future__":
future_lineno = stmt.lineno
future_column = stmt.col_offset
- for name in stmt.names:
+ for alias in stmt.names:
+ assert isinstance(alias, ast.alias)
# If this is an invalid flag, it will be caught later in
# codegen.py.
- flags |= feature_flags.get(name.name, 0)
+ flags |= feature_flags.get(alias.name, 0)
else:
break
else:
More information about the pypy-commit
mailing list