]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Change to tutorial wording for reading text / binary files on Windows. Issue #6301.
authorMichael Foord <fuzzyman@voidspace.org.uk>
Sun, 13 Sep 2009 16:13:36 +0000 (16:13 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Sun, 13 Sep 2009 16:13:36 +0000 (16:13 +0000)
Doc/tutorial/inputoutput.rst

index 9efbca5b8b0c1553ab2e52e583282d4a7a618181..0259749ee21c4b50065edf48bd52a591fb1cf6d4 100644 (file)
@@ -248,8 +248,8 @@ writing. The *mode* argument is optional; ``'r'`` will be assumed if it's
 omitted.
 
 On Windows, ``'b'`` appended to the mode opens the file in binary mode, so there
-are also modes like ``'rb'``, ``'wb'``, and ``'r+b'``.  Windows makes a
-distinction between text and binary files; the end-of-line characters in text
+are also modes like ``'rb'``, ``'wb'``, and ``'r+b'``.  Python on Windows makes
+distinction between text and binary files; the end-of-line characters in text
 files are automatically altered slightly when data is read or written.  This
 behind-the-scenes modification to file data is fine for ASCII text files, but
 it'll corrupt binary data like that in :file:`JPEG` or :file:`EXE` files.  Be