[pypy-svn] r57986 - pypy/branch/oo-jit/pypy/translator/tool
arigo at codespeak.net
arigo at codespeak.net
Mon Sep 8 18:43:36 CEST 2008
Author: arigo
Date: Mon Sep 8 18:43:33 2008
New Revision: 57986
Modified:
pypy/branch/oo-jit/pypy/translator/tool/make_dot.py
Log:
Add support for one more graph attribute.
Modified: pypy/branch/oo-jit/pypy/translator/tool/make_dot.py
==============================================================================
--- pypy/branch/oo-jit/pypy/translator/tool/make_dot.py (original)
+++ pypy/branch/oo-jit/pypy/translator/tool/make_dot.py Mon Sep 8 18:43:33 2008
@@ -54,10 +54,11 @@
color="black",
dir="forward",
weight="5",
+ constraint="true",
):
d = locals()
attrs = [('%s="%s"' % (x, d[x].replace('"', '\\"').replace('\n', '\\n')))
- for x in ['label', 'style', 'color', 'dir', 'weight']]
+ for x in ['label', 'style', 'color', 'dir', 'weight', 'constraint']]
self.emit('edge [%s];' % ", ".join(attrs))
self.emit('%s -> %s' % (safename(name1), safename(name2)))
More information about the Pypy-commit
mailing list