summaryrefslogtreecommitdiffstats
path: root/test/ARGUMENTS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/ARGUMENTS.py')
-rw-r--r--test/ARGUMENTS.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/ARGUMENTS.py b/test/ARGUMENTS.py
index c028372..801d83a 100644
--- a/test/ARGUMENTS.py
+++ b/test/ARGUMENTS.py
@@ -30,9 +30,7 @@ test = TestSCons.TestSCons()
test.write('SConstruct', """
foo = open('foo.out', 'wb')
-keys = ARGUMENTS.keys()
-keys.sort()
-for k in keys:
+for k in sorted(list(ARGUMENTS.keys())):
foo.write(k + " = " + ARGUMENTS[k] + "\\n")
foo.close()
""")