[pypy-svn] r45275 - pypy/dist/pypy/tool
fijal at codespeak.net
fijal at codespeak.net
Mon Jul 23 15:18:03 CEST 2007
Author: fijal
Date: Mon Jul 23 15:18:02 2007
New Revision: 45275
Modified:
pypy/dist/pypy/tool/error.py
Log:
Use RPythonAnnotator.binding instead of bindings
Modified: pypy/dist/pypy/tool/error.py
==============================================================================
--- pypy/dist/pypy/tool/error.py (original)
+++ pypy/dist/pypy/tool/error.py Mon Jul 23 15:18:02 2007
@@ -120,7 +120,8 @@
msg.append(" function %s <%s, line %s> returning" % (func.func_name,
func.func_code.co_filename, func.func_code.co_firstlineno))
graph = desc.getuniquegraph()
- msg.append(" %s" % annotator.bindings[graph.returnblock.inputargs[0]])
+ msg.append(" %s" % annotator.binding(
+ graph.returnblock.inputargs[0], "(no annotation)"))
msg.append("")
def format_someobject_error(annotator, position_key, what, s_value, called_from_graph, binding=""):
More information about the Pypy-commit
mailing list