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.
|
||||
:license: see LICENSE for more details.
|
||||
"""
|
||||
from __future__ import print_function
|
||||
import re
|
||||
import os
|
||||
import inspect
|
||||
|
|
@ -59,7 +60,7 @@ def make_diff(filename, old, new):
|
|||
posixpath.normpath(posixpath.join('a', filename)),
|
||||
posixpath.normpath(posixpath.join('b', filename)),
|
||||
lineterm=''):
|
||||
print line
|
||||
print(line)
|
||||
|
||||
|
||||
def looks_like_teardown_function(node):
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
:copyright: (c) 2015 by Armin Ronacher.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
import os
|
||||
import re
|
||||
|
|
@ -85,12 +86,12 @@ def build_and_upload():
|
|||
|
||||
|
||||
def fail(message, *args):
|
||||
print >> sys.stderr, 'Error:', message % args
|
||||
print('Error:', message % args, file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
|
||||
def info(message, *args):
|
||||
print >> sys.stderr, message % args
|
||||
print(message % args, file=sys.stderr)
|
||||
|
||||
|
||||
def get_git_tags():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue