Mercurial > cpython-lru_cache-weakref
diff Doc/tutorial/errors.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 | 55d8c35322a7 |
| children | 949b9a2b9867 |
line wrap: on
line diff
--- a/Doc/tutorial/errors.rst Mon May 26 00:32:25 2008 +0000 +++ b/Doc/tutorial/errors.rst Mon May 26 01:03:56 2008 +0000 @@ -132,7 +132,7 @@ s = f.readline() i = int(s.strip()) except IOError as (errno, strerror): - print("I/O error(%s): %s" % (errno, strerror)) + print("I/O error({0}): {1}".format(errno, strerror)) except ValueError: print("Could not convert data to an integer.") except:
