turn 2 prints to py2/py3 compatible syntax (#1812)

This commit is contained in:
Frédéric Chapoton 2016-05-20 21:57:10 +02:00 committed by David Lord
parent 88500f5cc7
commit c810fae9e8

View file

@ -112,7 +112,7 @@ RESULT_TEMPATE = u'''\
def log(msg, *args):
print '[EXTTEST]', msg % args
print('[EXTTEST] ' + (msg % args))
class TestResult(object):
@ -302,7 +302,7 @@ def main():
if args.browse:
import webbrowser
webbrowser.open('file:///' + filename.lstrip('/'))
print 'Results written to', filename
print('Results written to {}'.format(filename))
if __name__ == '__main__':