Browse Source

a few more python3-compatible print (#1840)

pull/1841/head
Frédéric Chapoton 9 years ago committed by Markus Unterwaditzer
parent
commit
e4c712ffd2
  1. 3
      scripts/flask-07-upgrade.py
  2. 5
      scripts/make-release.py

3
scripts/flask-07-upgrade.py

@ -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):

5
scripts/make-release.py

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