summaryrefslogtreecommitdiff
path: root/graph.py
diff options
context:
space:
mode:
authorSylvain Th?nault <sylvain.thenault@logilab.fr>2010-07-01 18:37:37 +0200
committerSylvain Th?nault <sylvain.thenault@logilab.fr>2010-07-01 18:37:37 +0200
commit0b746fa27a94ea7d1dab5aafe7cb9ab476ccb623 (patch)
treeb7f6732736e387d731d28da9da3159a6c2ae95e3 /graph.py
parent13825514749b3577d9c7df11a848c1ecbc0d1cba (diff)
downloadlogilab-common-0b746fa27a94ea7d1dab5aafe7cb9ab476ccb623.tar.gz
don't raise string exception in testlib (closes #35331)
Diffstat (limited to 'graph.py')
-rw-r--r--graph.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/graph.py b/graph.py
index ca9b266..69f8f92 100644
--- a/graph.py
+++ b/graph.py
@@ -18,11 +18,8 @@
"""Graph manipulation utilities.
(dot generation adapted from pypy/translator/tool/make_dot.py)
-
-
-
-
"""
+
__docformat__ = "restructuredtext en"
__metaclass__ = type
@@ -116,6 +113,8 @@ class DotBackend:
pdot.close()
if target != 'dot':
if mapfile:
+ print '%s -Tcmapx -o%s -T%s %s -o%s' % (self.renderer, mapfile,
+ target, dot_sourcepath, outputfile)
subprocess.call('%s -Tcmapx -o%s -T%s %s -o%s' % (self.renderer, mapfile,
target, dot_sourcepath, outputfile), shell=True)
else:
@@ -152,6 +151,7 @@ class GraphGenerator:
# the backend is responsible to output the graph in a particular format
self.backend = backend
+ # XXX doesn't like space in outpufile / mapfile
def generate(self, visitor, propshdlr, outputfile=None, mapfile=None):
# the visitor
# the property handler is used to get node and edge properties