forked from orbit-oss/flask
a few more python3-compatible print (#1840)
This commit is contained in:
parent
83ae787f97
commit
e4c712ffd2
2 changed files with 5 additions and 3 deletions
|
|
@ -19,6 +19,7 @@
|
||||||
:copyright: (c) Copyright 2015 by Armin Ronacher.
|
:copyright: (c) Copyright 2015 by Armin Ronacher.
|
||||||
:license: see LICENSE for more details.
|
:license: see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import print_function
|
||||||
import re
|
import re
|
||||||
import os
|
import os
|
||||||
import inspect
|
import inspect
|
||||||
|
|
@ -59,7 +60,7 @@ def make_diff(filename, old, new):
|
||||||
posixpath.normpath(posixpath.join('a', filename)),
|
posixpath.normpath(posixpath.join('a', filename)),
|
||||||
posixpath.normpath(posixpath.join('b', filename)),
|
posixpath.normpath(posixpath.join('b', filename)),
|
||||||
lineterm=''):
|
lineterm=''):
|
||||||
print line
|
print(line)
|
||||||
|
|
||||||
|
|
||||||
def looks_like_teardown_function(node):
|
def looks_like_teardown_function(node):
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@
|
||||||
:copyright: (c) 2015 by Armin Ronacher.
|
:copyright: (c) 2015 by Armin Ronacher.
|
||||||
:license: BSD, see LICENSE for more details.
|
:license: BSD, see LICENSE for more details.
|
||||||
"""
|
"""
|
||||||
|
from __future__ import print_function
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
@ -85,12 +86,12 @@ def build_and_upload():
|
||||||
|
|
||||||
|
|
||||||
def fail(message, *args):
|
def fail(message, *args):
|
||||||
print >> sys.stderr, 'Error:', message % args
|
print('Error:', message % args, file=sys.stderr)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
def info(message, *args):
|
def info(message, *args):
|
||||||
print >> sys.stderr, message % args
|
print(message % args, file=sys.stderr)
|
||||||
|
|
||||||
|
|
||||||
def get_git_tags():
|
def get_git_tags():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue