Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f392c60

Browse files
committed
Merge: #18601: fix error made when difflib example was converted to use 'with'.
2 parents 9026262 + 96433f8 commit f392c60

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/library/difflib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ It is also contained in the Python source distribution, as
752752
# we're passing these as arguments to the diff function
753753
fromdate = time.ctime(os.stat(fromfile).st_mtime)
754754
todate = time.ctime(os.stat(tofile).st_mtime)
755-
with open(fromlines) as fromf, open(tofile) as tof:
755+
with open(fromfile) as fromf, open(tofile) as tof:
756756
fromlines, tolines = list(fromf), list(tof)
757757

758758
if options.u:

0 commit comments

Comments
 (0)