Skip to content
Myr

a few more python3-compatible print (#1840)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Frédéric Chapoton · committed by Markus Unterwaditzer · parent 83ae787 · Browse files · 2 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−3 removed

  • other:+5 added−3 removed

2 files+5 added−3 removed

modified:scripts/flask-07-upgrade.py+2 added-1 removed
17 unmodified lines
1819 :copyright: (c) Copyright 2015 by Armin Ronacher.20 :license: see LICENSE for more details.21"""22from __future__ import print_function23import re24import os25import inspect26import difflib
32 unmodified lines
59 for line in difflib.unified_diff(old.splitlines(), new.splitlines(),60 posixpath.normpath(posixpath.join('a', filename)),61 posixpath.normpath(posixpath.join('b', filename)),62 lineterm=''):62 print line63 print(line)646566def looks_like_teardown_function(node):67 returns = [x for x in ast.walk(node) if isinstance(x, ast.Return)]
231 unmodified lines
modified:scripts/make-release.py+3 added-2 removed
8 unmodified lines
910 :copyright: (c) 2015 by Armin Ronacher.11 :license: BSD, see LICENSE for more details.12"""13from __future__ import print_function14import sys15import os16import re17from datetime import datetime, date
67 unmodified lines
85 Popen([sys.executable, 'setup.py', 'release', 'sdist', 'bdist_wheel', 'upload']).wait()868788def fail(message, *args):88 print >> sys.stderr, 'Error:', message % args89 print('Error:', message % args, file=sys.stderr)90 sys.exit(1)919293def info(message, *args):93 print >> sys.stderr, message % args94 print(message % args, file=sys.stderr)959697def get_git_tags():98 return set(Popen(['git', 'tag'], stdout=PIPE).communicate()[0].splitlines())
48 unmodified lines