From e6f00637be87c8f5f0e50bf317d684ea421a6d19 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 26 May 2008 01:03:56 +0000 Subject: 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 ........ --- Doc/tutorial/errors.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Doc/tutorial/errors.rst') diff --git a/Doc/tutorial/errors.rst b/Doc/tutorial/errors.rst index 66213c5577..dd2e06ee46 100644 --- a/Doc/tutorial/errors.rst +++ b/Doc/tutorial/errors.rst @@ -132,7 +132,7 @@ the exception (allowing a caller to handle the exception as well):: 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: -- cgit v1.2.1