[pypy-svn] r68974 - pypy/branch/gc-jit-hack/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Wed Nov 4 16:08:15 CET 2009


Author: arigo
Date: Wed Nov  4 16:08:14 2009
New Revision: 68974

Modified:
   pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py
Log:
"import sys" missing.


Modified: pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py	Wed Nov  4 16:08:14 2009
@@ -1,4 +1,4 @@
-import py, os
+import py, os, sys
 from pypy.rpython.lltypesystem import llmemory
 from pypy.rpython.ootypesystem import ootype
 from pypy.rlib.objectmodel import we_are_translated
@@ -419,7 +419,6 @@
     @arguments("orgpc", "box", "box")
     def opimpl_check_div_overflow(self, pc, box1, box2):
         # detect the combination "box1 = -sys.maxint-1, box2 = -1".
-        import sys
         tmp1 = self.metainterp.execute_and_record(    # combination to detect:
             rop.INT_ADD, None, box1, ConstInt(sys.maxint))    # tmp1=-1, box2=-1
         tmp2 = self.metainterp.execute_and_record(
@@ -1373,7 +1372,6 @@
             try:
                 self._interpret()
             except:
-                import sys
                 if sys.exc_info()[0] is not None:
                     codewriter.log.info(sys.exc_info()[0].__name__)
                 raise



More information about the Pypy-commit mailing list