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:
Greg Stein 2020-07-26 18:19:49 -05:00 committed by GitHub
parent fffb354d7c
commit a45adc356e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,7 +211,7 @@ class Harness:
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
graph = self.create_graph()
for f in fmt: