mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#18601: fix error made when difflib example was converted to use 'with'.
This commit is contained in:
parent
11bfd32881
commit
96433f8e34
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue