[pypy-svn] r39033 - pypy/release/0.99.x/pypy/translator/tool

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Feb 16 18:14:52 CET 2007


Author: cfbolz
Date: Fri Feb 16 18:14:51 2007
New Revision: 39033

Modified:
   pypy/release/0.99.x/pypy/translator/tool/graphpage.py
Log:
the jit is not there


Modified: pypy/release/0.99.x/pypy/translator/tool/graphpage.py
==============================================================================
--- pypy/release/0.99.x/pypy/translator/tool/graphpage.py	(original)
+++ pypy/release/0.99.x/pypy/translator/tool/graphpage.py	Fri Feb 16 18:14:51 2007
@@ -148,9 +148,12 @@
                     self.annotator.binding_cause_history.get(var, []))
                 self.binding_history[var.name] = zip(history, cause_history)
                     
-        from pypy.jit.hintannotator.annotator import HintAnnotator
-        if isinstance(self.annotator, HintAnnotator):
-            return
+        try:
+            from pypy.jit.hintannotator.annotator import HintAnnotator
+            if isinstance(self.annotator, HintAnnotator):
+                return
+        except ImportError: # jit not included e.g. in 0.99
+            pass
 
         vars = {}
         for graph in graphs:



More information about the Pypy-commit mailing list