Browse Source

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

pull/1813/head
Frédéric Chapoton 9 years ago committed by David Lord
parent
commit
c810fae9e8
  1. 4
      scripts/flaskext_tester.py

4
scripts/flaskext_tester.py

@ -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…
Cancel
Save