mirror of
https://github.com/plasma-umass/coz.git
synced 2024-09-11 04:55:25 +03:00
Switching to python 3. Fixes #106
This commit is contained in:
parent
674e4e7e37
commit
80c2846f12
8
coz
8
coz
@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python2.7
|
||||
#!/usr/bin/env python3
|
||||
|
||||
# Copyright (c) 2015, Charlie Curtsinger and Emery Berger,
|
||||
# Copyright (c) 2019, Charlie Curtsinger and Emery Berger,
|
||||
# University of Massachusetts Amherst
|
||||
# This file is part of the Coz project. See LICENSE.md file at the top-level
|
||||
# directory of this distribution and at http://github.com/plasma-umass/coz.
|
||||
@ -84,7 +84,7 @@ def _coz_run(args):
|
||||
# Exit with special control-C return code
|
||||
result = 130
|
||||
# Add a newline to mimic output when running without coz
|
||||
print
|
||||
print()
|
||||
exit(result)
|
||||
|
||||
def _coz_plot(args):
|
||||
@ -140,7 +140,7 @@ _run_parser.add_argument('--fixed-line',
|
||||
|
||||
_run_parser.add_argument('--fixed-speedup',
|
||||
metavar='<speedup> (0-100)',
|
||||
type=int, choices=range(0, 101), default=None,
|
||||
type=int, choices=list(range(0, 101)), default=None,
|
||||
help='Evaluate optimizations of a specific amount')
|
||||
|
||||
# Use defaults to recover handler function and parser object from parser output
|
||||
|
Loading…
Reference in New Issue
Block a user