diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-07-30 19:37:11 (GMT) |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-07-30 19:37:11 (GMT) |
commit | 96433f8e34fda64ce607187bda2eca1c2bde0ec3 (patch) | |
tree | 4ac2bf9b3e14b1820aff616543eef679285175cd /Doc | |
parent | 11bfd32881e9d57072d3ffee253f5c34535d5042 (diff) | |
download | cpython-96433f8e34fda64ce607187bda2eca1c2bde0ec3.zip cpython-96433f8e34fda64ce607187bda2eca1c2bde0ec3.tar.gz cpython-96433f8e34fda64ce607187bda2eca1c2bde0ec3.tar.bz2 |
#18601: fix error made when difflib example was converted to use 'with'.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/difflib.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst index 836e240..ad1466e 100644 --- a/Doc/library/difflib.rst +++ b/Doc/library/difflib.rst @@ -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: |