[Python-checkins] cpython (merge 3.3 -> default): Merge: #18601: fix error made when difflib example was converted to use 'with'.

r.david.murray python-checkins at python.org
Tue Jul 30 21:38:04 CEST 2013


http://hg.python.org/cpython/rev/c4f377d710da
changeset:   84918:c4f377d710da
parent:      84916:2b3b873e2b19
parent:      84917:0e1f0faacb0d
user:        R David Murray <rdmurray at bitdance.com>
date:        Tue Jul 30 15:37:43 2013 -0400
summary:
  Merge: #18601: fix error made when difflib example was converted to use 'with'.

files:
  Doc/library/difflib.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/difflib.rst b/Doc/library/difflib.rst
--- a/Doc/library/difflib.rst
+++ b/Doc/library/difflib.rst
@@ -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:

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list