diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2013-11-15 18:08:56 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-11-18 12:44:07 +0000 |
commit | 730e350f043b10da38a42371060adde2137919a8 (patch) | |
tree | 3ba7eaa33f8939e370003f1c91fe9e0c3b0883d5 | |
parent | c10abc74d85ea1c4c3facf27c890cd21647dc393 (diff) | |
download | poky-730e350f043b10da38a42371060adde2137919a8.tar.gz |
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>
-rw-r--r-- | scripts/pybootchartgui/pybootchartgui/parsing.py | 3 |
1 files changed, 1 insertions, 2 deletions
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): | |||
675 | continue | 675 | continue |
676 | #state.filename = path | 676 | #state.filename = path |
677 | if os.path.isdir(path): | 677 | if os.path.isdir(path): |
678 | files = [ f for f in [os.path.join(path, f) for f in os.listdir(path)] ] | 678 | files = sorted([os.path.join(path, f) for f in os.listdir(path)]) |
679 | files.sort() | ||
680 | state = parse_paths(writer, state, files, mintime) | 679 | state = parse_paths(writer, state, files, mintime) |
681 | elif extension in [".tar", ".tgz", ".gz"]: | 680 | elif extension in [".tar", ".tgz", ".gz"]: |
682 | if extension == ".gz": | 681 | if extension == ".gz": |