diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-13 14:56:49 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-13 14:56:49 (GMT) |
commit | 9d977ce28597968f92929d708d56b10a58a35041 (patch) | |
tree | 460a8f64c3d54e14d24abf193255a731a28ceb80 /src/script/scons-configure-cache.py | |
parent | 2612afc1f93b213cd577429970d32cce73caae8b (diff) | |
parent | 056622b43309af38e4b6dcbbdcdd0e7b9b176a0d (diff) | |
download | SCons-9d977ce28597968f92929d708d56b10a58a35041.zip SCons-9d977ce28597968f92929d708d56b10a58a35041.tar.gz SCons-9d977ce28597968f92929d708d56b10a58a35041.tar.bz2 |
Merged in rodrigc/scons (pull request #410)
When iterating over dict.items(), we do not need a new list.
Diffstat (limited to 'src/script/scons-configure-cache.py')
-rw-r--r-- | src/script/scons-configure-cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/scons-configure-cache.py b/src/script/scons-configure-cache.py index 369f817..0fc7b48 100644 --- a/src/script/scons-configure-cache.py +++ b/src/script/scons-configure-cache.py @@ -101,7 +101,7 @@ for param in config_entries: parser.add_argument('--version', action='version', version='%(prog)s 1.0') # Get the command line as a dict without any of the unspecified entries. -args = dict([x for x in list(vars(parser.parse_args()).items()) if x[1]]) +args = dict([x for x in vars(parser.parse_args()).items() if x[1]]) # It seems somewhat strange to me, but positional arguments don't get the - # in the name changed to _, whereas optional arguments do... |