1. Pypy
  2. Untitled project
  3. pypy

Commits

Konstantin Lopuhin  committed 351043f

guard is in hex in comments now

  • Participants
  • Parent commits ac2defe
  • Branches fix-jit-logs

Comments (0)

Files changed (1)

File pypy/tool/jitlogparser/parser.py

View file
         comm = loop.comment
         comm = comm.lower()
         if comm.startswith('# bridge'):
-            m = re.search('guard (\d+)', comm)
-            name = 'guard ' + hex(int(m.group(1)))[2:]
+            m = re.search('guard ([\da-f]+)', comm)
+            name = 'guard ' + m.group(1)
         elif "(" in comm:
             name = comm[2:comm.find('(')-1]
         else: