Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 5638505649857546158ae504da2a4b25 > files > 11

bootchart-0.14.0-1.2.git20110331.fc15.src.rpm

From f6c5c9ab94ba076a6ba1623448cafe2f1305be7c 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")