default should be an iterable
The code looks at `fmt` as an iterable. Tweak the default value to avoid iteration of 'p', 'd', 'f'.
This commit is contained in:
parent
fffb354d7c
commit
a45adc356e
@ -211,7 +211,7 @@ class Harness:
|
|||||||
|
|
||||||
return dot
|
return dot
|
||||||
|
|
||||||
def output(self, filename, directory='_output', view=False, cleanup=True, fmt='pdf', gen_bom=False):
|
def output(self, filename, directory='_output', view=False, cleanup=True, fmt=('pdf',), gen_bom=False):
|
||||||
# graphical output
|
# graphical output
|
||||||
graph = self.create_graph()
|
graph = self.create_graph()
|
||||||
for f in fmt:
|
for f in fmt:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user