[pypy-svn] r66387 - pypy/branch/parser-compiler/pypy/interpreter/astcompiler

benjamin at codespeak.net benjamin at codespeak.net
Sat Jul 18 21:28:29 CEST 2009


Author: benjamin
Date: Sat Jul 18 21:28:29 2009
New Revision: 66387

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
annotator help

Modified: pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
==============================================================================
--- pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	(original)
+++ pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py	Sat Jul 18 21:28:29 2009
@@ -852,7 +852,9 @@
                 not self._call_has_simple_args(call) or \
                 not isinstance(call.func, ast.Name):
             return False
-        name_scope = self.scope.lookup(call.func.id)
+        func_name = call.func
+        assert isinstance(func_name, ast.Name)
+        name_scope = self.scope.lookup(func_name)
         if name_scope == symtable.SCOPE_GLOBAL_IMPLICIT or \
                 name_scope == symtable.SCOPE_UNKNOWN:
             builtin_index = BUILTIN_TO_INDEX.get(call.func.id, -1)



More information about the Pypy-commit mailing list