Skip to content

Commit a5293b4

Browse files
luzpazserhiy-storchaka
authored andcommitted
Fix miscellaneous typos (#4275)
1 parent cf29653 commit a5293b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+82
-82
lines changed

Doc/library/asyncio-task.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Task
374374
running in different threads. While a task waits for the completion of a
375375
future, the event loop executes a new task.
376376

377-
The cancellation of a task is different from the cancelation of a
377+
The cancellation of a task is different from the cancellation of a
378378
future. Calling :meth:`cancel` will throw a
379379
:exc:`~concurrent.futures.CancelledError` to the wrapped
380380
coroutine. :meth:`~Future.cancelled` only returns ``True`` if the

Doc/library/sys.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ always available.
13361336
| | * ``None`` if this information is unknown |
13371337
+------------------+---------------------------------------------------------+
13381338
| :const:`version` | Name and version of the thread library. It is a string, |
1339-
| | or ``None`` if these informations are unknown. |
1339+
| | or ``None`` if this information is unknown. |
13401340
+------------------+---------------------------------------------------------+
13411341

13421342
.. versionadded:: 3.3

Doc/library/unittest.mock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2374,7 +2374,7 @@ Sealing mocks
23742374
any new attribute on the sealed mock. The sealing process is performed recursively.
23752375

23762376
If a mock instance is assigned to an attribute instead of being dynamically created
2377-
it wont be considered in the sealing chain. This allows to prevent seal from fixing
2377+
it won't be considered in the sealing chain. This allows to prevent seal from fixing
23782378
part of the mock object.
23792379

23802380
>>> mock = Mock()

Doc/whatsnew/3.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ modules. The :mod:`configparser` module uses them by default. This lets
6969
configuration files be read, modified, and then written back in their original
7070
order. The *_asdict()* method for :func:`collections.namedtuple` now
7171
returns an ordered dictionary with the values appearing in the same order as
72-
the underlying tuple indicies. The :mod:`json` module is being built-out with
72+
the underlying tuple indices. The :mod:`json` module is being built-out with
7373
an *object_pairs_hook* to allow OrderedDicts to be built by the decoder.
7474
Support was also added for third-party tools like `PyYAML <http://pyyaml.org/>`_.
7575

Doc/whatsnew/3.3.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1504,7 +1504,7 @@ argument taking an iterable of handlers to be added to the root logger.
15041504
A class level attribute :attr:`~logging.handlers.SysLogHandler.append_nul` has
15051505
been added to :class:`~logging.handlers.SysLogHandler` to allow control of the
15061506
appending of the ``NUL`` (``\000``) byte to syslog records, since for some
1507-
deamons it is required while for others it is passed through to the log.
1507+
daemons it is required while for others it is passed through to the log.
15081508

15091509

15101510

@@ -2003,7 +2003,7 @@ sys
20032003
---
20042004

20052005
The :mod:`sys` module has a new :data:`~sys.thread_info` :term:`struct
2006-
sequence` holding informations about the thread implementation
2006+
sequence` holding information about the thread implementation
20072007
(:issue:`11223`).
20082008

20092009

@@ -2040,7 +2040,7 @@ class instance, are now classes and may be subclassed. (Contributed by Éric
20402040
Araujo in :issue:`10968`.)
20412041

20422042
The :class:`threading.Thread` constructor now accepts a ``daemon`` keyword
2043-
argument to override the default behavior of inheriting the ``deamon`` flag
2043+
argument to override the default behavior of inheriting the ``daemon`` flag
20442044
value from the parent thread (:issue:`6064`).
20452045

20462046
The formerly private function ``_thread.get_ident`` is now available as the

Include/object.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ introducing new functionality between major revisions (to avoid mid-version
604604
changes in the PYTHON_API_VERSION).
605605
606606
Arbitration of the flag bit positions will need to be coordinated among
607-
all extension writers who publically release their extensions (this will
607+
all extension writers who publicly release their extensions (this will
608608
be fewer than you might expect!)..
609609
610610
Most flags were removed as of Python 3.0 to make room for new flags. (Some

Include/pymem.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,11 @@ PyAPI_FUNC(char *) _PyMem_Strdup(const char *str);
132132
*/
133133

134134
#define PyMem_New(type, n) \
135-
( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
136-
( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
135+
( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
136+
( (type *) PyMem_Malloc((n) * sizeof(type)) ) )
137137
#define PyMem_NEW(type, n) \
138-
( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
139-
( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
138+
( ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
139+
( (type *) PyMem_MALLOC((n) * sizeof(type)) ) )
140140

141141
/*
142142
* The value of (p) is always clobbered by this macro regardless of success.
@@ -145,17 +145,17 @@ PyAPI_FUNC(char *) _PyMem_Strdup(const char *str);
145145
* caller's memory error handler to not lose track of it.
146146
*/
147147
#define PyMem_Resize(p, type, n) \
148-
( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
149-
(type *) PyMem_Realloc((p), (n) * sizeof(type)) )
148+
( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
149+
(type *) PyMem_Realloc((p), (n) * sizeof(type)) )
150150
#define PyMem_RESIZE(p, type, n) \
151-
( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
152-
(type *) PyMem_REALLOC((p), (n) * sizeof(type)) )
151+
( (p) = ((size_t)(n) > PY_SSIZE_T_MAX / sizeof(type)) ? NULL : \
152+
(type *) PyMem_REALLOC((p), (n) * sizeof(type)) )
153153

154154
/* PyMem{Del,DEL} are left over from ancient days, and shouldn't be used
155155
* anymore. They're just confusing aliases for PyMem_{Free,FREE} now.
156156
*/
157-
#define PyMem_Del PyMem_Free
158-
#define PyMem_DEL PyMem_FREE
157+
#define PyMem_Del PyMem_Free
158+
#define PyMem_DEL PyMem_FREE
159159

160160
#ifndef Py_LIMITED_API
161161
typedef enum {
@@ -212,7 +212,7 @@ PyAPI_FUNC(void) PyMem_SetAllocator(PyMemAllocatorDomain domain,
212212
- PyObject_Malloc(), PyObject_Realloc() and PyObject_Free()
213213
214214
Newly allocated memory is filled with the byte 0xCB, freed memory is filled
215-
with the byte 0xDB. Additionnal checks:
215+
with the byte 0xDB. Additional checks:
216216
217217
- detect API violations, ex: PyObject_Free() called on a buffer allocated
218218
by PyMem_Malloc()

Lib/hashlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def prf(msg, inner=inner, outer=outer):
218218
from_bytes = int.from_bytes
219219
while len(dkey) < dklen:
220220
prev = prf(salt + loop.to_bytes(4, 'big'))
221-
# endianess doesn't matter here as long to / from use the same
221+
# endianness doesn't matter here as long to / from use the same
222222
rkey = int.from_bytes(prev, 'big')
223223
for i in range(iterations - 1):
224224
prev = prf(prev)

Lib/idlelib/NEWS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extension.cfg. All take effect as soon as one clicks Apply or Ok.
8181
'<<zoom-height>>'. Any (global) customizations made before 3.6.3 will
8282
not affect their keyset-specific customization after 3.6.3. and vice
8383
versa.
84-
Inital patch by Charles Wohlganger, revised by Terry Jan Reedy.
84+
Initial patch by Charles Wohlganger, revised by Terry Jan Reedy.
8585

8686
bpo-31051: Rearrange condigdialog General tab.
8787
Sort non-Help options into Window (Shell+Editor) and Editor (only).

Lib/idlelib/browser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class ModuleBrowser:
5858
"""Browse module classes and functions in IDLE.
5959
"""
6060
# This class is also the base class for pathbrowser.PathBrowser.
61-
# Init and close are inherited, other methods are overriden.
61+
# Init and close are inherited, other methods are overridden.
6262
# PathBrowser.__init__ does not call __init__ below.
6363

6464
def __init__(self, master, path, *, _htest=False, _utest=False):

0 commit comments

Comments
 (0)