Skip to content

Commit 8d56c02

Browse files
committed
Issue #27125: Fix various errors like “will [be] inherited”
1 parent e8a175e commit 8d56c02

13 files changed

Lines changed: 17 additions & 15 deletions

File tree

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ The class can be used to simulate nested scopes and is useful in templating.
5656
dictionary is provided so that a new chain always has at least one mapping.
5757

5858
The underlying mappings are stored in a list. That list is public and can
59-
accessed or updated using the *maps* attribute. There is no other state.
59+
be accessed or updated using the *maps* attribute. There is no other state.
6060

6161
Lookups search the underlying mappings successively until a key is found. In
6262
contrast, writes, updates, and deletions only operate on the first mapping.

Doc/library/multiprocessing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2478,7 +2478,7 @@ the connection.)
24782478

24792479
If authentication is requested but no authentication key is specified then the
24802480
return value of ``current_process().authkey`` is used (see
2481-
:class:`~multiprocessing.Process`). This value will automatically inherited by
2481+
:class:`~multiprocessing.Process`). This value will be automatically inherited by
24822482
any :class:`~multiprocessing.Process` object that the current process creates.
24832483
This means that (by default) all processes of a multi-process program will share
24842484
a single authentication key which can be used when setting up connections

Doc/library/os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3486,7 +3486,7 @@ operating system.
34863486

34873487
.. data:: SCHED_RESET_ON_FORK
34883488

3489-
This flag can OR'ed with any other scheduling policy. When a process with
3489+
This flag can be OR'ed with any other scheduling policy. When a process with
34903490
this flag set forks, its child's scheduling policy and priority are reset to
34913491
the default.
34923492

Doc/library/shlex.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ variables which either control lexical analysis or can be used for debugging:
244244
This attribute is ``None`` by default. If you assign a string to it, that
245245
string will be recognized as a lexical-level inclusion request similar to the
246246
``source`` keyword in various shells. That is, the immediately following token
247-
will opened as a filename and input taken from that stream until EOF, at which
247+
will be opened as a filename and input will
248+
be taken from that stream until EOF, at which
248249
point the :meth:`~io.IOBase.close` method of that stream will be called and
249250
the input source will again become the original input stream. Source
250251
requests may be stacked any number of levels deep.

Doc/library/typing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ You can use multiple inheritance with :class:`Generic`::
156156
class LinkedList(Sized, Generic[T]):
157157
...
158158

159-
When inheriting from generic classes, some type variables could fixed::
159+
When inheriting from generic classes, some type variables could be fixed::
160160

161161
from typing import TypeVar, Mapping
162162

Doc/whatsnew/2.6.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3154,7 +3154,7 @@ Port-Specific Changes: Mac OS X
31543154
:func:`macostools.touched` function to be removed because it depended on the
31553155
:mod:`macfs` module. (:issue:`1490190`)
31563156

3157-
* Many other Mac OS modules have been deprecated and will removed in
3157+
* Many other Mac OS modules have been deprecated and will be removed in
31583158
Python 3.0:
31593159
:mod:`_builtinSuites`,
31603160
:mod:`aepack`,

Lib/collections/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,8 @@ class ChainMap(MutableMapping):
850850
to create a single, updateable view.
851851
852852
The underlying mappings are stored in a list. That list is public and can
853-
accessed or updated using the *maps* attribute. There is no other state.
853+
be accessed or updated using the *maps* attribute. There is no other
854+
state.
854855
855856
Lookups search the underlying mappings successively until a key is found.
856857
In contrast, writes, updates, and deletions only operate on the first

Lib/email/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def set_param(self, param, value, header='Content-Type', requote=True,
710710
message, it will be set to "text/plain" and the new parameter and
711711
value will be appended as per RFC 2045.
712712
713-
An alternate header can specified in the header argument, and all
713+
An alternate header can be specified in the header argument, and all
714714
parameters will be quoted as necessary unless requote is False.
715715
716716
If charset is specified, the parameter will be encoded according to RFC

Lib/test/test_httplib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ def test_putheader(self):
255255
self.assertIn(b'\xa0NonbreakSpace: value', conn._buffer)
256256

257257
def test_ipv6host_header(self):
258-
# Default host header on IPv6 transaction should wrapped by [] if
259-
# its actual IPv6 address
258+
# Default host header on IPv6 transaction should be wrapped by [] if
259+
# it is an IPv6 address
260260
expected = b'GET /foo HTTP/1.1\r\nHost: [2001::]:81\r\n' \
261261
b'Accept-Encoding: identity\r\n\r\n'
262262
conn = client.HTTPConnection('[2001::]:81')

Lib/tkinter/tix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ def __init__ (self,master=None,cnf={}, **kw):
10521052

10531053
class LabelEntry(TixWidget):
10541054
"""LabelEntry - Entry field with label. Packages an entry widget
1055-
and a label into one mega widget. It can beused be used to simplify
1055+
and a label into one mega widget. It can be used be used to simplify
10561056
the creation of ``entry-form'' type of interface.
10571057
10581058
Subwidgets Class

0 commit comments

Comments
 (0)