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/Action.py | |
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/Action.py')
-rw-r--r-- | src/engine/SCons/Action.py | 2 |
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 |