summaryrefslogtreecommitdiffstats
path: root/src/script
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2018-11-10 20:14:49 (GMT)
committerMats Wichmann <mats@linux.com>2018-12-01 16:28:01 (GMT)
commit7cf33c636a0052e661d95f4ddb8e3d6237383ee4 (patch)
treefe6ab35ed3ee5374b48b8a7f34a0e95beeae9f4e /src/script
parent776672af607e359468dc87e7efcca28260f70a7d (diff)
downloadSCons-7cf33c636a0052e661d95f4ddb8e3d6237383ee4.zip
SCons-7cf33c636a0052e661d95f4ddb8e3d6237383ee4.tar.gz
SCons-7cf33c636a0052e661d95f4ddb8e3d6237383ee4.tar.bz2
For PR #3238: suggestion to use a comprehension
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'src/script')
-rw-r--r--src/script/sconsign.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/script/sconsign.py b/src/script/sconsign.py
index 567dc07..9a10907 100644
--- a/src/script/sconsign.py
+++ b/src/script/sconsign.py
@@ -283,9 +283,8 @@ def map_bkids(entry, _):
bkidsigs = entry.bsourcesigs + entry.bdependsigs + entry.bimplicitsigs
except AttributeError:
return None
- result = []
- for bkid, bkidsig in zip(bkids, bkidsigs):
- result.append(nodeinfo_string(bkid, bkidsig, " "))
+ result = [nodeinfo_string(bkid, bkidsig, " ")
+ for bkid, bkidsig in zip(bkids, bkidsigs)]
if not result:
return None
return "\n ".join(result)