1. Pypy
  2. Untitled project
  3. jitviewer

Commits

Maciej Fijalkowski  committed 8bfab62

a bit more robustness

  • Participants
  • Parent commits a30511a
  • Branches default

Comments (0)

Files changed (1)

File _jitviewer/app.py

View file
 import inspect
 import threading
 import time
-from rpython.tool.logparser import extract_category
+try:
+    from rpython.tool.logparser import extract_category
+except ImportError:
+    from pypy.tool.logparser import extract_category
 from pypy.tool.jitlogparser.storage import LoopStorage
 from pypy.tool.jitlogparser.parser import adjust_bridges, import_log,\
      parse_log_counts