Commit 04a23878 authored by R David Murray's avatar R David Murray

#18601: fix error made when difflib example was converted to use 'with'.

parent 4b44c383
...@@ -752,7 +752,7 @@ It is also contained in the Python source distribution, as ...@@ -752,7 +752,7 @@ It is also contained in the Python source distribution, as
# we're passing these as arguments to the diff function # we're passing these as arguments to the diff function
fromdate = time.ctime(os.stat(fromfile).st_mtime) fromdate = time.ctime(os.stat(fromfile).st_mtime)
todate = time.ctime(os.stat(tofile).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) fromlines, tolines = list(fromf), list(tof)
if options.u: if options.u:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment