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

benjamin at codespeak.net benjamin at codespeak.net
Sat Jul 18 22:13:16 CEST 2009


Author: benjamin
Date: Sat Jul 18 22:13:16 2009
New Revision: 66393

Modified:
   pypy/branch/parser-compiler/pypy/interpreter/astcompiler/codegen.py
Log:
use variable the annotator knows the type of

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 22:13:16 2009
@@ -859,7 +859,7 @@
         name_scope = self.scope.lookup(func_name.id)
         if name_scope == symtable.SCOPE_GLOBAL_IMPLICIT or \
                 name_scope == symtable.SCOPE_UNKNOWN:
-            builtin_index = BUILTIN_TO_INDEX.get(call.func.id, -1)
+            builtin_index = BUILTIN_TO_INDEX.get(func_name.id, -1)
             if builtin_index != -1:
                 if call.args:
                     args_count = len(call.args)



More information about the Pypy-commit mailing list