summaryrefslogtreecommitdiffstats
path: root/ext/python/Tools
diff options
context:
space:
mode:
authorChristoph Erhardt <kolab@sicherha.de>2021-06-05 09:59:24 +0200
committerChristoph Erhardt <kolab@sicherha.de>2022-01-10 20:48:40 +0100
commitc3b9d5557161f840a8f2c45fc91ec09299593dd9 (patch)
tree93105906638753c8d040af85226f30ae63963cbf /ext/python/Tools
parent991255eaa314b51e2dd586460311d4633a56eb86 (diff)
downloadpykolab-c3b9d5557161f840a8f2c45fc91ec09299593dd9.tar.gz
[Python 3] Remove unnecessary occurrences of .keys()
Summary: The following cases are covered: * for key in dict * if key in dict * len(dict) This will make life easier for futurize. Reviewers: machniak, mollekopf Reviewed By: mollekopf Differential Revision: https://git.kolab.org/D3235
Diffstat (limited to 'ext/python/Tools')
-rw-r--r--ext/python/Tools/freeze/checkextensions.py2
-rwxr-xr-xext/python/Tools/freeze/freeze.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/python/Tools/freeze/checkextensions.py b/ext/python/Tools/freeze/checkextensions.py
index 334521f..078f5d7 100644
--- a/ext/python/Tools/freeze/checkextensions.py
+++ b/ext/python/Tools/freeze/checkextensions.py
@@ -28,7 +28,7 @@ def checkextensions(unknown, extensions):
if liba in files:
break
files.append(liba)
- for m in mods.keys():
+ for m in mods:
files = files + select(e, mods, vars,
m, 1)
break
diff --git a/ext/python/Tools/freeze/freeze.py b/ext/python/Tools/freeze/freeze.py
index a7906b1..6f74ca2 100755
--- a/ext/python/Tools/freeze/freeze.py
+++ b/ext/python/Tools/freeze/freeze.py
@@ -467,7 +467,7 @@ def main():
somevars = {}
if os.path.exists(makefile_in):
makevars = parsesetup.getmakevars(makefile_in)
- for key in makevars.keys():
+ for key in makevars:
somevars[key] = makevars[key]
somevars['CFLAGS'] = ' '.join(cflags) # override