diff options
author | Mats Wichmann <mats@linux.com> | 2018-11-10 20:14:49 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2018-12-01 16:28:01 (GMT) |
commit | 7cf33c636a0052e661d95f4ddb8e3d6237383ee4 (patch) | |
tree | fe6ab35ed3ee5374b48b8a7f34a0e95beeae9f4e /src/script | |
parent | 776672af607e359468dc87e7efcca28260f70a7d (diff) | |
download | SCons-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.py | 5 |
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) |