Author: Benjamin Peterson <[email protected]>
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:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to