pybootchartgui: No need to do a double list comprehension over files

(From OE-Core rev: bd00a768d88c22eabee90407684f1fb84139acfb)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt 2013-11-15 18:08:56 +01:00 committed by Richard Purdie
parent c10abc74d8
commit 730e350f04

View File

@ -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":