mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02: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:
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":
|
||||
|
|
Loading…
Reference in New Issue
Block a user