[Python-checkins] cpython (3.3): #18601: fix error made when difflib example was converted to use 'with'.
r.david.murray
python-checkins at python.org
Tue Jul 30 21:38:02 CEST 2013
http://hg.python.org/cpython/rev/0e1f0faacb0d
changeset: 84917:0e1f0faacb0d
branch: 3.3
parent: 84914:7b86be4e822c
user: R David Murray <rdmurray at bitdance.com>
date: Tue Jul 30 15:37:11 2013 -0400
summary:
#18601: fix error made when difflib example was converted to use 'with'.
files:
Doc/library/difflib.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst
--- a/Doc/library/difflib.rst
+++ b/Doc/library/difflib.rst
@@ -752,7 +752,7 @@
# we're passing these as arguments to the diff function
fromdate = time.ctime(os.stat(fromfile).st_mtime)
todate = time.ctime(os.stat(tofile).st_mtime)
- with open(fromlines) as fromf, open(tofile) as tof:
+ with open(fromfile) as fromf, open(tofile) as tof:
fromlines, tolines = list(fromf), list(tof)
if options.u:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list