Author: Antonio Cuni <[email protected]>
Branch: oparser-mock-model
Changeset: r44860:5df9b736b6e6
Date: 2011-06-09 12:10 +0200
http://bitbucket.org/pypy/pypy/changeset/5df9b736b6e6/

Log:    delay the import of BasicFailDescr; it seems not to be used by the
        jitviewer

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
@@ -5,7 +5,7 @@
 
 from pypy.jit.tool.oparser_model import get_model
 
-from pypy.jit.metainterp.history import BasicFailDescr, \
+from pypy.jit.metainterp.history import \
      LoopToken, get_const_ptr_for_string, get_const_ptr_for_unicode
 from pypy.jit.metainterp.resoperation import rop, ResOperation, \
                                             ResOpWithDescr, N_aryOp, \
@@ -55,6 +55,7 @@
 
 
 def default_fail_descr(fail_args=None):
+    from pypy.jit.metainterp.history import BasicFailDescr
     return BasicFailDescr()
 
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to