From c5317097b05375d268b3ba9abbc70bd32b63f66a Mon Sep 17 00:00:00 2001 From: Harald Hoyer <harald@redhat.com> Date: Fri, 18 Feb 2011 13:54:11 +0100 Subject: [PATCH] pybootchartgui/main.py.in: set default format to png fixes traceback: $ bootchart -o . .... return os.path.join (dname, fname + "." + options.format) TypeError: cannot concatenate 'str' and 'NoneType' objects --- pybootchartgui/main.py.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pybootchartgui/main.py.in b/pybootchartgui/main.py.in index c5f28d1..cd5f273 100644 --- a/pybootchartgui/main.py.in +++ b/pybootchartgui/main.py.in @@ -32,7 +32,7 @@ def _mk_options_parser(): parser = optparse.OptionParser(usage, version=version) parser.add_option("-i", "--interactive", action="store_true", dest="interactive", default=False, help="start in active mode") - parser.add_option("-f", "--format", dest="format", default = None, + parser.add_option("-f", "--format", dest="format", default = "png", help="image format (...); default format ...") parser.add_option("-o", "--output", dest="output", metavar="PATH", default="bootchart.png", help="output path (file or directory) where charts are stored")