Skip to content

Commit c4cacc8

Browse files
minho42terryjreedy
authored andcommitted
Fix typos in comments, docs and test names (#15018)
* Fix typos in comments, docs and test names * Update test_pyparse.py account for change in string length * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <[email protected]> * Apply suggestion: splitable -> splittable Co-Authored-By: Terry Jan Reedy <[email protected]> * Apply suggestion: Dealloccte -> Deallocate Co-Authored-By: Terry Jan Reedy <[email protected]> * Update posixmodule checksum. * Reverse idlelib changes.
1 parent 0acb646 commit c4cacc8

Some content is hidden

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

63 files changed

+73
-73
lines changed

Doc/library/email.encoders.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ the :meth:`~email.message.EmailMessage.set_content` method.
1515
This module is deprecated in Python 3. The functions provided here
1616
should not be called explicitly since the :class:`~email.mime.text.MIMEText`
1717
class sets the content type and CTE header using the *_subtype* and *_charset*
18-
values passed during the instaniation of that class.
18+
values passed during the instantiation of that class.
1919

2020
The remaining text in this section is the original documentation of the module.
2121

Doc/library/statistics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ However, for reading convenience, most of the examples show sorted sequences.
554554
>>> [round(q, 1) for q in quantiles(data, n=10)]
555555
[81.0, 86.2, 89.0, 99.4, 102.5, 103.6, 106.0, 109.8, 111.0]
556556

557-
>>> # Quartile cut points for the standard normal distibution
557+
>>> # Quartile cut points for the standard normal distribution
558558
>>> Z = NormalDist()
559559
>>> [round(q, 4) for q in quantiles(Z, n=4)]
560560
[-0.6745, 0.0, 0.6745]

Include/abstract.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ PyAPI_FUNC(PyObject *) PySequence_Fast(PyObject *o, const char* m);
702702
(PyList_Check(o) ? PyList_GET_ITEM(o, i) : PyTuple_GET_ITEM(o, i))
703703

704704
/* Return a pointer to the underlying item array for
705-
an object retured by PySequence_Fast */
705+
an object returned by PySequence_Fast */
706706
#define PySequence_Fast_ITEMS(sf) \
707707
(PyList_Check(sf) ? ((PyListObject *)(sf))->ob_item \
708708
: ((PyTupleObject *)(sf))->ob_item)

Include/ast.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PyAPI_FUNC(mod_ty) PyAST_FromNodeObject(
2525
PyAPI_FUNC(PyObject *) _PyAST_ExprAsUnicode(expr_ty);
2626

2727
/* Return the borrowed reference to the first literal string in the
28-
sequence of statemnts or NULL if it doesn't start from a literal string.
28+
sequence of statements or NULL if it doesn't start from a literal string.
2929
Doesn't set exception. */
3030
PyAPI_FUNC(PyObject *) _PyAST_GetDocString(asdl_seq *);
3131

Include/pymath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ PyAPI_FUNC(void) _Py_set_387controlword(unsigned short);
125125

126126
/* Py_IS_FINITE(X)
127127
* Return 1 if float or double arg is neither infinite nor NAN, else 0.
128-
* Some compilers (e.g. VisualStudio) have intrisics for this, so a special
128+
* Some compilers (e.g. VisualStudio) have intrinsics for this, so a special
129129
* macro for this particular test is useful
130130
* Note: PC/pyconfig.h defines Py_IS_FINITE as _finite
131131
*/

Lib/_pyio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ def __init__(self, file, mode='r', closefd=True, opener=None):
15731573
raise IsADirectoryError(errno.EISDIR,
15741574
os.strerror(errno.EISDIR), file)
15751575
except AttributeError:
1576-
# Ignore the AttribueError if stat.S_ISDIR or errno.EISDIR
1576+
# Ignore the AttributeError if stat.S_ISDIR or errno.EISDIR
15771577
# don't exist.
15781578
pass
15791579
self._blksize = getattr(fdfstat, 'st_blksize', 0)

Lib/asyncio/streams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ def __init__(self, loop=None, *, _asyncio_internal=False):
556556
# Avoid inheritance from FlowControlMixin
557557
# Copy-paste the code to your project
558558
# if you need flow control helpers
559-
warnings.warn(f"{self.__class__} should be instaniated "
559+
warnings.warn(f"{self.__class__} should be instantiated "
560560
"by asyncio internals only, "
561561
"please avoid its creation from user code",
562562
DeprecationWarning)

Lib/asyncio/subprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def _get_close_waiter(self, stream):
130130
class Process:
131131
def __init__(self, transport, protocol, loop, *, _asyncio_internal=False):
132132
if not _asyncio_internal:
133-
warnings.warn(f"{self.__class__} should be instaniated "
133+
warnings.warn(f"{self.__class__} should be instantiated "
134134
"by asyncio internals only, "
135135
"please avoid its creation from user code",
136136
DeprecationWarning)

Lib/imaplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def deleteacl(self, mailbox, who):
502502
def enable(self, capability):
503503
"""Send an RFC5161 enable string to the server.
504504
505-
(typ, [data]) = <intance>.enable(capability)
505+
(typ, [data]) = <instance>.enable(capability)
506506
"""
507507
if 'ENABLE' not in self.capabilities:
508508
raise IMAP4.error("Server does not support ENABLE")

Lib/lib2to3/fixer_util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ def _find(name, node):
412412
return None
413413

414414
def _is_import_binding(node, name, package=None):
415-
""" Will reuturn node if node will import name, or node
415+
""" Will return node if node will import name, or node
416416
will import * from package. None is returned otherwise.
417417
See test cases for examples. """
418418

0 commit comments

Comments
 (0)