Author: Antonio Cuni <anto.c...@gmail.com>
Branch: oparser-mock-model
Changeset: r44865:77c7ac35c293
Date: 2011-06-09 13:27 +0200
http://bitbucket.org/pypy/pypy/changeset/77c7ac35c293/

Log:    remove the last 'big' import

diff --git a/pypy/jit/tool/oparser.py b/pypy/jit/tool/oparser.py
--- a/pypy/jit/tool/oparser.py
+++ b/pypy/jit/tool/oparser.py
@@ -9,8 +9,6 @@
                                             ResOpWithDescr, N_aryOp, \
                                             UnaryOp, PlainResOp
 
-from pypy.rpython.ootypesystem import ootype
-
 class ParseError(Exception):
     pass
 
diff --git a/pypy/jit/tool/oparser_model.py b/pypy/jit/tool/oparser_model.py
--- a/pypy/jit/tool/oparser_model.py
+++ b/pypy/jit/tool/oparser_model.py
@@ -24,6 +24,11 @@
             from pypy.rpython.lltypesystem import llmemory
             return adr2int(llmemory.cast_ptr_to_adr(obj))
 
+        @staticmethod
+        def ootype_cast_to_object(obj):
+            from pypy.rpython.ootypesystem import ootype
+            return ootype.cast_to_object(obj)
+
     return LoopModel
 
 def get_mock_model():
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to