Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8bde911

Browse files
committed
Issue #27626: Merge spelling fixes from 3.5
2 parents 4b53359 + eb99570 commit 8bde911

33 files changed

Lines changed: 48 additions & 48 deletions

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
@@ -633,7 +633,7 @@ ABC hierarchy::
633633
.. method:: path_stats(path)
634634

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

638638
- ``'mtime'`` (mandatory): an integer or floating-point number
639639
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
@@ -1938,7 +1938,7 @@ features:
19381938
On Unix, *path* can be of type :class:`str` or :class:`bytes` (use
19391939
:func:`~os.fsencode` and :func:`~os.fsdecode` to encode and decode
19401940
:class:`bytes` paths). On Windows, *path* must be of type :class:`str`.
1941-
On both sytems, the type of the :attr:`~os.DirEntry.name` and
1941+
On both systems, the type of the :attr:`~os.DirEntry.name` and
19421942
:attr:`~os.DirEntry.path` attributes of each :class:`os.DirEntry` will be of
19431943
the same type as *path*.
19441944

Doc/library/socket.rst

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

12281228
.. versionchanged:: 3.5
1229-
The socket timeout is no more reset each time data is sent successfuly.
1229+
The socket timeout is no more reset each time data is sent successfully.
12301230
The socket timeout is now the maximum total duration to send all data.
12311231

12321232
.. versionchanged:: 3.5

Include/longobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ PyAPI_FUNC(PyObject *) _PyLong_FromByteArray(
160160
example, if is_signed is 0 and there are more digits in the v than
161161
fit in n; or if is_signed is 1, v < 0, and n is just 1 bit shy of
162162
being large enough to hold a sign bit. OverflowError is set in this
163-
case, but bytes holds the least-signficant n bytes of the true value.
163+
case, but bytes holds the least-significant n bytes of the true value.
164164
*/
165165
PyAPI_FUNC(int) _PyLong_AsByteArray(PyLongObject* v,
166166
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
@@ -721,7 +721,7 @@ def today(cls):
721721

722722
@classmethod
723723
def fromordinal(cls, n):
724-
"""Contruct a date from a proleptic Gregorian ordinal.
724+
"""Construct a date from a proleptic Gregorian ordinal.
725725
726726
January 1 of year 1 is day 1. Only the year, month and day are
727727
non-zero in the result.

0 commit comments

Comments
 (0)