[pypy-svn] r35447 - pypy/dist/pypy/translator/tool
arigo at codespeak.net
arigo at codespeak.net
Thu Dec 7 18:11:42 CET 2006
Author: arigo
Date: Thu Dec 7 18:11:41 2006
New Revision: 35447
Modified:
pypy/dist/pypy/translator/tool/make_dot.py
Log:
link.exitcase can be e.g. chr(1) - use %r for this case.
Modified: pypy/dist/pypy/translator/tool/make_dot.py
==============================================================================
--- pypy/dist/pypy/translator/tool/make_dot.py (original)
+++ pypy/dist/pypy/translator/tool/make_dot.py Thu Dec 7 18:11:41 2006
@@ -192,7 +192,7 @@
name2 = self.blockname(link.target)
label = " ".join(map(repr, link.args))
if link.exitcase is not None:
- label = "%s: %s" %(link.exitcase, label)
+ label = "%r: %s" %(link.exitcase, label)
self.emit_edge(name, name2, label, style="dotted", color="red")
else:
self.emit_edge(name, name2, label, style="solid")
More information about the Pypy-commit
mailing list