1. Pypy
  2. Untitled project
  3. jitviewer

Commits

Maciej Fijalkowski  committed ca0dcdb

insist a bit more on displayng loops

  • Participants
  • Parent commits c870554
  • Branches default

Comments (0)

Files changed (1)

File bin/jitviewer.py

View file
  • Ignore whitespace
                 except (IOError, OSError):
                     source = CodeReprNoFile(loop)
             else:
-                source = CodeRepr(inspect.getsource(code), code, loop)
+                try:
+                    source = CodeRepr(inspect.getsource(code), code, loop)
+                except:
+                    source = CodeReprNoFile(loop)
         d = {'html': flask.render_template('loop.html',
                                            source=source,
                                            current_loop=no,