diff options
Diffstat (limited to 'Demo/comparisons/sortingtest.py')
-rwxr-xr-x | Demo/comparisons/sortingtest.py | 6 |
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() |