forked from orbit-oss/flask
turn 2 prints to py2/py3 compatible syntax (#1812)
This commit is contained in:
parent
88500f5cc7
commit
c810fae9e8
1 changed files with 2 additions and 2 deletions
|
|
@ -112,7 +112,7 @@ RESULT_TEMPATE = u'''\
|
||||||
|
|
||||||
|
|
||||||
def log(msg, *args):
|
def log(msg, *args):
|
||||||
print '[EXTTEST]', msg % args
|
print('[EXTTEST] ' + (msg % args))
|
||||||
|
|
||||||
|
|
||||||
class TestResult(object):
|
class TestResult(object):
|
||||||
|
|
@ -302,7 +302,7 @@ def main():
|
||||||
if args.browse:
|
if args.browse:
|
||||||
import webbrowser
|
import webbrowser
|
||||||
webbrowser.open('file:///' + filename.lstrip('/'))
|
webbrowser.open('file:///' + filename.lstrip('/'))
|
||||||
print 'Results written to', filename
|
print('Results written to {}'.format(filename))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue