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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=730e350f043b10da38a42371060adde2137919a8;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git pybootchartgui: No need to do a double list comprehension over files (From OE-Core rev: bd00a768d88c22eabee90407684f1fb84139acfb) 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 c8a6a5721aa..ed61825d237 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":