Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/stdlib2.rst @ 47283:f28cbab11acd
Merged revisions 63655 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r63655 | benjamin.peterson | 2008-05-25 19:54:22 -0500 (Sun, 25 May 2008) | 2 lines
update the tutorial to use str.format
........
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Mon, 26 May 2008 01:03:56 +0000 |
| parents | 4f1a079df427 |
| children | de0bf60f1245 |
line wrap: on
line diff
--- a/Doc/tutorial/stdlib2.rst Mon May 26 00:32:25 2008 +0000 +++ b/Doc/tutorial/stdlib2.rst Mon May 26 01:03:56 2008 +0000 @@ -116,7 +116,7 @@ >>> for i, filename in enumerate(photofiles): ... base, ext = os.path.splitext(filename) ... newname = t.substitute(d=date, n=i, f=ext) - ... print('%s --> %s' % (filename, newname)) + ... print('{0} --> {1}'.format(filename, newname)) img_1074.jpg --> Ashley_0.jpg img_1076.jpg --> Ashley_1.jpg
