summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2013-11-15 18:08:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-18 12:41:35 +0000
commitbd00a768d88c22eabee90407684f1fb84139acfb (patch)
tree43535a9dd1b1dd3b00a525b3aed0d745ae715272
parent901afb35da814661ed20b2895f1d4055bf73fae2 (diff)
downloadopenembedded-core-bd00a768d88c22eabee90407684f1fb84139acfb.tar.gz
openembedded-core-bd00a768d88c22eabee90407684f1fb84139acfb.tar.bz2
openembedded-core-bd00a768d88c22eabee90407684f1fb84139acfb.zip
pybootchartgui: No need to do a double list comprehension over files
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/pybootchartgui/pybootchartgui/parsing.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/pybootchartgui/pybootchartgui/parsing.py b/scripts/pybootchartgui/pybootchartgui/parsing.py
index c8a6a5721a..ed61825d23 100644
--- a/scripts/pybootchartgui/pybootchartgui/parsing.py
+++ b/scripts/pybootchartgui/pybootchartgui/parsing.py
@@ -675,8 +675,7 @@ def parse_paths(writer, state, paths, mintime):
continue
#state.filename = path
if os.path.isdir(path):
- files = [ f for f in [os.path.join(path, f) for f in os.listdir(path)] ]
- files.sort()
+ files = sorted([os.path.join(path, f) for f in os.listdir(path)])
state = parse_paths(writer, state, files, mintime)
elif extension in [".tar", ".tgz", ".gz"]:
if extension == ".gz":