diff options
author | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-07-01 18:37:37 +0200 |
---|---|---|
committer | Sylvain Th?nault <sylvain.thenault@logilab.fr> | 2010-07-01 18:37:37 +0200 |
commit | 0b746fa27a94ea7d1dab5aafe7cb9ab476ccb623 (patch) | |
tree | b7f6732736e387d731d28da9da3159a6c2ae95e3 /graph.py | |
parent | 13825514749b3577d9c7df11a848c1ecbc0d1cba (diff) | |
download | logilab-common-0b746fa27a94ea7d1dab5aafe7cb9ab476ccb623.tar.gz |
don't raise string exception in testlib (closes #35331)
Diffstat (limited to 'graph.py')
-rw-r--r-- | graph.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |