summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-02-10 05:44:01 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-02-10 05:44:01 (GMT)
commitc04fb56e36999a4162e6ccfe1f9357100abaee99 (patch)
tree68f930a7b0956c487f671f6868fc00bac6edafb7 /Doc/howto
parent96a4f07107476c0038ff1302b7ef779cab07e8ae (diff)
downloadcpython-c04fb56e36999a4162e6ccfe1f9357100abaee99.zip
cpython-c04fb56e36999a4162e6ccfe1f9357100abaee99.tar.gz
cpython-c04fb56e36999a4162e6ccfe1f9357100abaee99.tar.bz2
Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar
The original form is incorrect grammar and feels awkward, even though the meaning is clear.
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/pyporting.rst4
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`).