[pypy-svn] r29675 - pypy/dist/pypy/tool
fijal at codespeak.net
fijal at codespeak.net
Thu Jul 6 14:23:56 CEST 2006
Author: fijal
Date: Thu Jul 6 14:23:54 2006
New Revision: 29675
Modified:
pypy/dist/pypy/tool/error.py
Log:
Shows better block (but still not accurate). But is inconsistent anyway...
Modified: pypy/dist/pypy/tool/error.py
==============================================================================
--- pypy/dist/pypy/tool/error.py (original)
+++ pypy/dist/pypy/tool/error.py Thu Jul 6 14:23:54 2006
@@ -54,7 +54,7 @@
msg.append('-+' * 30)
def format_someobject_error(annotator, graph, block, what):
- block = getattr(annotator, 'flowin_block', None) or block
+ #block = getattr(annotator, 'flowin_block', None) or block
block_start = offset2lineno(graph.func.func_code, block.operations[0].offset) - graph.startline - 1
block_end = offset2lineno(graph.func.func_code, block.operations[-1].offset) - graph.startline - 1
msg = ["annotation of %r degenerated to SomeObject()" % (what,)]
More information about the Pypy-commit
mailing list