From: Peter Kjellerstedt Date: Fri, 15 Nov 2013 17:08:56 +0000 (+0100) Subject: pybootchartgui: No need to do a double list comprehension over files X-Git-Tag: 2015-4~4593 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=bd00a768d88c22eabee90407684f1fb84139acfb;p=openembedded-core.git pybootchartgui: No need to do a double list comprehension over files Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- 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":