]> granicus.if.org Git - python/commitdiff
#18601: fix error made when difflib example was converted to use 'with'.
authorR David Murray <rdmurray@bitdance.com>
Tue, 30 Jul 2013 19:37:11 +0000 (15:37 -0400)
committerR David Murray <rdmurray@bitdance.com>
Tue, 30 Jul 2013 19:37:11 +0000 (15:37 -0400)
Doc/library/difflib.rst

index 836e240b83061fe966f5e51cfc1adbce5ae1fc16..ad1466efaae469249049762b8d87a70cab15775b 100644 (file)
@@ -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: