diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 13:03:23 -0800 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 13:03:23 -0800 |
commit | dbcd820bd18181ff5090b5e49e99c22f926bd9ec (patch) | |
tree | 8757cec005be0367866f27f1a9265adbf5def009 /QMTest | |
parent | cf5b5b840547e7faa8289ef4999424699d5948d1 (diff) | |
download | scons-dbcd820bd18181ff5090b5e49e99c22f926bd9ec.tar.gz |
Replace list(filter()) with list comprehension.
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestCommon.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/QMTest/TestCommon.py b/QMTest/TestCommon.py index cd9e990f..c1adc376 100644 --- a/QMTest/TestCommon.py +++ b/QMTest/TestCommon.py @@ -582,7 +582,7 @@ class TestCommon(TestCmd): """ files = [is_List(x) and os.path.join(*x) or x for x in files] existing, missing = separate_files(files) - writable = list(filter(is_writable, existing)) + writable = [file for file in existing if is_writable(file)] if missing: print("Missing files: `%s'" % "', `".join(missing)) if writable: |