summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@apheleia-it.ch>2022-08-04 11:58:01 +0200
committerChristian Mollekopf <mollekopf@apheleia-it.ch>2022-08-25 13:53:11 +0200
commit89fb52cfb2fe140ab8def73e1ddc0027ef05c977 (patch)
treeed841e95d4407ec659215aa820ad562aede7d407 /ext
parentfc9da3e2b08501b0ef65d1f3378bca5f75fe8236 (diff)
downloadpykolab-89fb52cfb2fe140ab8def73e1ddc0027ef05c977.tar.gz
Python3: avoid dict.keys and don't try sorting keys
Diffstat (limited to 'ext')
-rw-r--r--ext/python/Tools/freeze/parsesetup.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/python/Tools/freeze/parsesetup.py b/ext/python/Tools/freeze/parsesetup.py
index ae0bc43..dbab50c 100644
--- a/ext/python/Tools/freeze/parsesetup.py
+++ b/ext/python/Tools/freeze/parsesetup.py
@@ -102,9 +102,7 @@ def test():
print('(name must begin with "Makefile" or "Setup")')
def prdict(d):
- keys = d.keys()
- keys.sort()
- for key in keys:
+ for key in sorted(d):
value = d[key]
print("%-15s" % key, str(value))