summaryrefslogtreecommitdiffstats
path: root/Demo/comparisons/sortingtest.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/comparisons/sortingtest.py')
-rwxr-xr-xDemo/comparisons/sortingtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Demo/comparisons/sortingtest.py b/Demo/comparisons/sortingtest.py
index cabf626..464eb5c 100755
--- a/Demo/comparisons/sortingtest.py
+++ b/Demo/comparisons/sortingtest.py
@@ -42,10 +42,10 @@ def main():
if not line:
break
items = line.split()
- items = map(makekey, items)
+ items = list(map(makekey, items))
items.sort()
for num, var in items:
- print "%s=%s" % (var, num),
- print
+ print("%s=%s" % (var, num), end=' ')
+ print()
main()