mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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:
committed by
Richard Purdie
parent
c10abc74d8
commit
730e350f04
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user