diff options
author | Eric Engestrom <[email protected]> | 2017-09-19 13:56:56 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-09-25 12:05:44 +0100 |
commit | e3610475683584a3b3e1e5a3e0435f0678ccd1f7 (patch) | |
tree | 6a79a2c616f2dbcec8285dca4ba31b15be1d62f4 /scons/custom.py | |
parent | 29c8d755ea6fc97757db9ea28706e516a6b0d7f1 (diff) |
scons: use python3-compatible lists
These changes were generated using python's `2to3` tool.
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'scons/custom.py')
-rw-r--r-- | scons/custom.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scons/custom.py b/scons/custom.py index 955247ccf20..09946fa7324 100644 --- a/scons/custom.py +++ b/scons/custom.py @@ -113,7 +113,7 @@ def python_scan(node, env, path): finder = modulefinder.ModuleFinder(path=path) finder.run_script(node.abspath) results = [] - for name, mod in finder.modules.iteritems(): + for name, mod in finder.modules.items(): if mod.__file__ is None: continue assert os.path.exists(mod.__file__) @@ -189,7 +189,7 @@ def _pkg_check_modules(env, name, modules): except OSError: return prefix = name + '_' - for flag_name, flag_value in flags.iteritems(): + for flag_name, flag_value in flags.items(): assert '_' not in flag_name env[prefix + flag_name] = flag_value @@ -222,7 +222,7 @@ def pkg_use_modules(env, names): raise Exception('Attempt to use unavailable module %s' % name) flags = {} - for flag_name, flag_value in env.Dictionary().iteritems(): + for flag_name, flag_value in env.Dictionary().items(): if flag_name.startswith(prefix): flag_name = flag_name[len(prefix):] if '_' not in flag_name: @@ -262,7 +262,7 @@ def parse_source_list(env, filename, names=None): symbols = names else: - symbols = sym_table.keys() + symbols = list(sym_table.keys()) # convert the symbol table to source lists src_lists = {} |