diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-02-10 05:44:56 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-02-10 05:44:56 (GMT) |
commit | 3008b1c4bba34eae2682afbd61f8f66ca1683289 (patch) | |
tree | a2016c4f34dda3b57c2fee64097b4e16ff4a375b /Doc/howto | |
parent | 7e3a91a5fc056f72c93f015bb9f4f22aef9e72fb (diff) | |
parent | c04fb56e36999a4162e6ccfe1f9357100abaee99 (diff) | |
download | cpython-3008b1c4bba34eae2682afbd61f8f66ca1683289.zip cpython-3008b1c4bba34eae2682afbd61f8f66ca1683289.tar.gz cpython-3008b1c4bba34eae2682afbd61f8f66ca1683289.tar.bz2 |
Issue #26304: Merge doc wording from 3.5
Diffstat (limited to 'Doc/howto')
-rw-r--r-- | Doc/howto/pyporting.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/howto/pyporting.rst b/Doc/howto/pyporting.rst index a2aaf36..87b68d4 100644 --- a/Doc/howto/pyporting.rst +++ b/Doc/howto/pyporting.rst @@ -243,8 +243,8 @@ bothered to add the ``b`` mode when opening a binary file (e.g., ``rb`` for binary reading). Under Python 3, binary files and text files are clearly distinct and mutually incompatible; see the :mod:`io` module for details. Therefore, you **must** make a decision of whether a file will be used for -binary access (allowing to read and/or write binary data) or text access -(allowing to read and/or write text data). You should also use :func:`io.open` +binary access (allowing binary data to be read and/or written) or text access +(allowing text data to be read and/or written). You should also use :func:`io.open` for opening files instead of the built-in :func:`open` function as the :mod:`io` module is consistent from Python 2 to 3 while the built-in :func:`open` function is not (in Python 3 it's actually :func:`io.open`). |