[pypy-svn] jitviewer default: Doh. Fix the call on untested piece
fijal
commits-noreply at bitbucket.org
Sun Apr 10 12:49:32 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r117:b27539e5ab1d
Date: 2011-04-10 12:49 +0200
http://bitbucket.org/pypy/jitviewer/changeset/b27539e5ab1d/
Log: Doh. Fix the call on untested piece
diff --git a/bin/jitviewer.py b/bin/jitviewer.py
--- a/bin/jitviewer.py
+++ b/bin/jitviewer.py
@@ -108,7 +108,8 @@
startline, endline = loop.linerange
if loop.filename is not None:
- code = self.storage.load_code(loop.filename)[loop.startlineno]
+ code = self.storage.load_code(loop.filename)[(loop.startlineno,
+ loop.name)]
source = CodeRepr(inspect.getsource(code), code, loop)
else:
source = CodeReprNoFile(loop)
More information about the Pypy-commit
mailing list