Author: Maciej Fijalkowski <[email protected]>
Branch:
Changeset: r210:783713a57056
Date: 2013-01-25 22:20 +0200
http://bitbucket.org/pypy/jitviewer/changeset/783713a57056/
Log: "fix"
diff --git a/_jitviewer/display.py b/_jitviewer/display.py
--- a/_jitviewer/display.py
+++ b/_jitviewer/display.py
@@ -48,7 +48,10 @@
last_lineno = no
else:
no = last_lineno
- self.lines[no - self.firstlineno].chunks.append(chunk)
-
+ try:
+ self.lines[no - self.firstlineno].chunks.append(chunk)
+ except IndexError:
+ self.lines[-1].chunks.append(chunk) # too bad, just stash it
there
+
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit