summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Action.py
diff options
context:
space:
mode:
authorCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 21:03:23 (GMT)
committerCraig Rodrigues <rodrigc@FreeBSD.org>2017-03-11 21:03:23 (GMT)
commit4da977010029bbe4d94e5c6ad8db10f62cab6276 (patch)
tree8757cec005be0367866f27f1a9265adbf5def009 /src/engine/SCons/Action.py
parentbf3e197e213e45b5c5966b70f186f2fc6b0ecfa2 (diff)
downloadSCons-4da977010029bbe4d94e5c6ad8db10f62cab6276.zip
SCons-4da977010029bbe4d94e5c6ad8db10f62cab6276.tar.gz
SCons-4da977010029bbe4d94e5c6ad8db10f62cab6276.tar.bz2
Replace list(filter()) with list comprehension.
Diffstat (limited to 'src/engine/SCons/Action.py')
-rw-r--r--src/engine/SCons/Action.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Action.py b/src/engine/SCons/Action.py
index eb215fd..be70293 100644
--- a/src/engine/SCons/Action.py
+++ b/src/engine/SCons/Action.py
@@ -778,7 +778,7 @@ class CommandAction(_ActionAction):
_ActionAction.__init__(self, **kw)
if is_List(cmd):
- if list(filter(is_List, cmd)):
+ if [c for c in cmd if is_List(c)]:
raise TypeError("CommandAction should be given only " \
"a single command")
self.cmd_list = cmd