From: R David Murray Date: Tue, 30 Jul 2013 19:37:11 +0000 (-0400) Subject: #18601: fix error made when difflib example was converted to use 'with'. X-Git-Tag: v3.4.0a1~37^2~9^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=96433f8e34fda64ce607187bda2eca1c2bde0ec3;p=thirdparty%2FPython%2Fcpython.git #18601: fix error made when difflib example was converted to use 'with'. --- diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index 836e240b8306..ad1466efaae4 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: