Skip to content

Commit eb99570

Browse files
committed
Issue #27626: Spelling fixes in docs, comments and internal names
Based on patch by Ville Skyttä.
1 parent eac67be commit eb99570

33 files changed

+48
-48
lines changed

Doc/howto/clinic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1583,7 +1583,7 @@ called ``preserve``::
15831583

15841584
preserve
15851585

1586-
This tells Clinic that the current contents of the output should be kept, unmodifed.
1586+
This tells Clinic that the current contents of the output should be kept, unmodified.
15871587
This is used internally by Clinic when dumping output into ``file`` files; wrapping
15881588
it in a Clinic block lets Clinic use its existing checksum functionality to ensure
15891589
the file was not modified by hand before it gets overwritten.

Doc/howto/sockets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ mainloop of the web server::
106106
There's actually 3 general ways in which this loop could work - dispatching a
107107
thread to handle ``clientsocket``, create a new process to handle
108108
``clientsocket``, or restructure this app to use non-blocking sockets, and
109-
mulitplex between our "server" socket and any active ``clientsocket``\ s using
109+
multiplex between our "server" socket and any active ``clientsocket``\ s using
110110
``select``. More about that later. The important thing to understand now is
111111
this: this is *all* a "server" socket does. It doesn't send any data. It doesn't
112112
receive any data. It just produces "client" sockets. Each ``clientsocket`` is

Doc/library/configparser.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The structure of INI files is described `in the following section
6666
<#supported-ini-file-structure>`_. Essentially, the file
6767
consists of sections, each of which contains keys with values.
6868
:mod:`configparser` classes can read and write such files. Let's start by
69-
creating the above configuration file programatically.
69+
creating the above configuration file programmatically.
7070

7171
.. doctest::
7272

Doc/library/importlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ ABC hierarchy::
629629
.. method:: path_stats(path)
630630

631631
Optional abstract method which returns a :class:`dict` containing
632-
metadata about the specifed path. Supported dictionary keys are:
632+
metadata about the specified path. Supported dictionary keys are:
633633

634634
- ``'mtime'`` (mandatory): an integer or floating-point number
635635
representing the modification time of the source code;

Doc/library/os.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,7 @@ features:
19001900
On Unix, *path* can be of type :class:`str` or :class:`bytes` (use
19011901
:func:`~os.fsencode` and :func:`~os.fsdecode` to encode and decode
19021902
:class:`bytes` paths). On Windows, *path* must be of type :class:`str`.
1903-
On both sytems, the type of the :attr:`~DirEntry.name` and
1903+
On both systems, the type of the :attr:`~DirEntry.name` and
19041904
:attr:`~DirEntry.path` attributes of each :class:`DirEntry` will be of
19051905
the same type as *path*.
19061906

Doc/library/socket.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ to sockets.
12111211
much data, if any, was successfully sent.
12121212

12131213
.. versionchanged:: 3.5
1214-
The socket timeout is no more reset each time data is sent successfuly.
1214+
The socket timeout is no more reset each time data is sent successfully.
12151215
The socket timeout is now the maximum total duration to send all data.
12161216

12171217
.. versionchanged:: 3.5

Include/longobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ PyAPI_FUNC(PyObject *) _PyLong_FromByteArray(
159159
example, if is_signed is 0 and there are more digits in the v than
160160
fit in n; or if is_signed is 1, v < 0, and n is just 1 bit shy of
161161
being large enough to hold a sign bit. OverflowError is set in this
162-
case, but bytes holds the least-signficant n bytes of the true value.
162+
case, but bytes holds the least-significant n bytes of the true value.
163163
*/
164164
PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
165165
unsigned char* bytes, size_t n,

Lib/ctypes/test/test_numbers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_bool_values(self):
7676
self.assertEqual(t(v).value, truth(v))
7777

7878
def test_typeerror(self):
79-
# Only numbers are allowed in the contructor,
79+
# Only numbers are allowed in the constructor,
8080
# otherwise TypeError is raised
8181
for t in signed_types + unsigned_types + float_types:
8282
self.assertRaises(TypeError, t, "")

Lib/ctypes/test/test_structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class XX(Structure):
106106
self.assertEqual(alignment(XX), alignment(X))
107107
self.assertEqual(sizeof(XX), calcsize("3s 3s 0s"))
108108

109-
def test_emtpy(self):
109+
def test_empty(self):
110110
# I had problems with these
111111
#
112112
# Although these are pathological cases: Empty Structures!

Lib/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def today(cls):
706706

707707
@classmethod
708708
def fromordinal(cls, n):
709-
"""Contruct a date from a proleptic Gregorian ordinal.
709+
"""Construct a date from a proleptic Gregorian ordinal.
710710
711711
January 1 of year 1 is day 1. Only the year, month and day are
712712
non-zero in the result.

0 commit comments

Comments
 (0)