[Python-checkins] cpython (merge 3.2 -> 3.3): #17217: merge with 3.2.
ezio.melotti
python-checkins at python.org
Sat Feb 23 06:58:45 CET 2013
http://hg.python.org/cpython/rev/3eb693462891
changeset: 82334:3eb693462891
branch: 3.3
parent: 82331:eb9edac39751
parent: 82333:831be7dc260a
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Sat Feb 23 07:57:53 2013 +0200
summary:
#17217: merge with 3.2.
files:
Lib/test/test_format.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py
--- a/Lib/test/test_format.py
+++ b/Lib/test/test_format.py
@@ -14,10 +14,10 @@
def testformat(formatstr, args, output=None, limit=None, overflowok=False):
if verbose:
if output:
- print("%r %% %r =? %r ..." %\
- (formatstr, args, output), end=' ')
+ print("{!a} % {!a} =? {!a} ...".format(formatstr, args, output),
+ end=' ')
else:
- print("%r %% %r works? ..." % (formatstr, args), end=' ')
+ print("{!a} % {!a} works? ...".format(formatstr, args), end=' ')
try:
result = formatstr % args
except OverflowError:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list