summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2013-07-30 19:37:43 (GMT)
committerR David Murray <rdmurray@bitdance.com>2013-07-30 19:37:43 (GMT)
commitf392c604e707d547753e8b0ebd94a06202d1b75f (patch)
tree9fc37cf1453c7f52f0853a0fc7493688bedf9392 /Doc/library
parent90262625075cdfc32e77340f907d3a47ab6b47f1 (diff)
parent96433f8e34fda64ce607187bda2eca1c2bde0ec3 (diff)
downloadcpython-f392c604e707d547753e8b0ebd94a06202d1b75f.zip
cpython-f392c604e707d547753e8b0ebd94a06202d1b75f.tar.gz
cpython-f392c604e707d547753e8b0ebd94a06202d1b75f.tar.bz2
Merge: #18601: fix error made when difflib example was converted to use 'with'.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/difflib.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst
index 836e240..ad1466e 100644
--- a/Doc/library/difflib.rst
+++ b/Doc/library/difflib.rst
@@ -752,7 +752,7 @@ It is also contained in the Python source distribution, as
# 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: