[pypy-svn] r7627 - pypy/trunk/src/pypy/translator/tool
tismer at codespeak.net
tismer at codespeak.net
Tue Nov 23 17:19:31 CET 2004
Author: tismer
Date: Tue Nov 23 17:19:30 2004
New Revision: 7627
Modified:
pypy/trunk/src/pypy/translator/tool/make_dot.py
Log:
had to escape some more attributes.
Modified: pypy/trunk/src/pypy/translator/tool/make_dot.py
==============================================================================
--- pypy/trunk/src/pypy/translator/tool/make_dot.py (original)
+++ pypy/trunk/src/pypy/translator/tool/make_dot.py Tue Nov 23 17:19:30 2004
@@ -54,7 +54,7 @@
weight="5",
):
d = locals()
- attrs = [('%s="%s"' % (x, d[x]))
+ attrs = [('%s="%s"' % (x, d[x].replace('"', '\\"')))
for x in ['label', 'style', 'color', 'dir', 'weight']]
self.emit('edge [%s];' % ", ".join(attrs))
self.emit('%s -> %s' % (name1, name2))
@@ -67,7 +67,7 @@
style="filled",
):
d = locals()
- attrs = [('%s="%s"' % (x, d[x]))
+ attrs = [('%s="%s"' % (x, d[x].replace('"', '\\"')))
for x in ['shape', 'label', 'color', 'fillcolor', 'style']]
self.emit('%s [%s];' % (name, ", ".join(attrs)))
More information about the Pypy-commit
mailing list