diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 21:03:23 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 21:03:23 (GMT) |
commit | 4da977010029bbe4d94e5c6ad8db10f62cab6276 (patch) | |
tree | 8757cec005be0367866f27f1a9265adbf5def009 /src/engine/SCons/Scanner | |
parent | bf3e197e213e45b5c5966b70f186f2fc6b0ecfa2 (diff) | |
download | SCons-4da977010029bbe4d94e5c6ad8db10f62cab6276.zip SCons-4da977010029bbe4d94e5c6ad8db10f62cab6276.tar.gz SCons-4da977010029bbe4d94e5c6ad8db10f62cab6276.tar.bz2 |
Replace list(filter()) with list comprehension.
Diffstat (limited to 'src/engine/SCons/Scanner')
-rw-r--r-- | src/engine/SCons/Scanner/Dir.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Scanner/Dir.py b/src/engine/SCons/Scanner/Dir.py index cbfb6fb..3b33fe5 100644 --- a/src/engine/SCons/Scanner/Dir.py +++ b/src/engine/SCons/Scanner/Dir.py @@ -27,7 +27,7 @@ import SCons.Scanner def only_dirs(nodes): is_Dir = lambda n: isinstance(n.disambiguate(), SCons.Node.FS.Dir) - return list(filter(is_Dir, nodes)) + return [node for node in nodes if is_Dir(node)] def DirScanner(**kw): """Return a prototype Scanner instance for scanning |