diff Doc/library/difflib.rst @ 84917:0e1f0faacb0d 3.3

#18601: fix error made when difflib example was converted to use 'with'.
author R David Murray <rdmurray@bitdance.com>
date Tue, 30 Jul 2013 15:37:11 -0400
parents aff9bcbd2fc7
children 907da535ed9d
line wrap: on
line diff
--- a/Doc/library/difflib.rst	Tue Jul 30 14:42:40 2013 -0400
+++ b/Doc/library/difflib.rst	Tue Jul 30 15:37:11 2013 -0400
@@ -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: