[pypy-svn] r74318 - pypy/trunk/pypy/interpreter

benjamin at codespeak.net benjamin at codespeak.net
Sun May 2 03:26:53 CEST 2010


Author: benjamin
Date: Sun May  2 03:26:51 2010
New Revision: 74318

Modified:
   pypy/trunk/pypy/interpreter/pyopcode.py
Log:
remove function import

Modified: pypy/trunk/pypy/interpreter/pyopcode.py
==============================================================================
--- pypy/trunk/pypy/interpreter/pyopcode.py	(original)
+++ pypy/trunk/pypy/interpreter/pyopcode.py	Sun May  2 03:26:51 2010
@@ -886,8 +886,6 @@
 
     @jit.unroll_safe
     def call_function(self, oparg, w_star=None, w_starstar=None):
-        from pypy.interpreter.function import is_builtin_code
-
         n_arguments = oparg & 0xff
         n_keywords = (oparg>>8) & 0xff
         if n_keywords:
@@ -909,7 +907,7 @@
         args = self.argument_factory(arguments, keywords, keywords_w, w_star,
                                      w_starstar)
         w_function  = self.popvalue()
-        if self.is_being_profiled and is_builtin_code(w_function):
+        if self.is_being_profiled and function.is_builtin_code(w_function):
             w_result = self.space.call_args_and_c_profile(self, w_function,
                                                           args)
         else:



More information about the Pypy-commit mailing list