Skip to content

Commit 80c2846

Browse files
committed
Switching to python 3. Fixes #106
1 parent 674e4e7 commit 80c2846

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

coz

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/usr/bin/env python2.7
1+
#!/usr/bin/env python3
22

3-
# Copyright (c) 2015, Charlie Curtsinger and Emery Berger,
3+
# Copyright (c) 2019, Charlie Curtsinger and Emery Berger,
44
# University of Massachusetts Amherst
55
# This file is part of the Coz project. See LICENSE.md file at the top-level
66
# directory of this distribution and at http://github.com/plasma-umass/coz.
@@ -84,7 +84,7 @@ def _coz_run(args):
8484
# Exit with special control-C return code
8585
result = 130
8686
# Add a newline to mimic output when running without coz
87-
print
87+
print()
8888
exit(result)
8989

9090
def _coz_plot(args):
@@ -140,7 +140,7 @@ _run_parser.add_argument('--fixed-line',
140140

141141
_run_parser.add_argument('--fixed-speedup',
142142
metavar='<speedup> (0-100)',
143-
type=int, choices=range(0, 101), default=None,
143+
type=int, choices=list(range(0, 101)), default=None,
144144
help='Evaluate optimizations of a specific amount')
145145

146146
# Use defaults to recover handler function and parser object from parser output

0 commit comments

Comments
 (0)