Fix miscellaneous typos (#4275)
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index eaaedfa..4440ab0 100644
--- a/Modules/_ctypes/_ctypes.c
+++ b/Modules/_ctypes/_ctypes.c
@@ -3745,7 +3745,7 @@
/*
XXX Is the following correct any longer?
We must not pass a byref() to the array then but
- the array instance itself. Then, we cannot retrive
+ the array instance itself. Then, we cannot retrieve
the result from the PyCArgObject.
*/
if (ob == NULL)
diff --git a/Modules/_ctypes/stgdict.c b/Modules/_ctypes/stgdict.c
index b66c6ec..25656ff 100644
--- a/Modules/_ctypes/stgdict.c
+++ b/Modules/_ctypes/stgdict.c
@@ -329,7 +329,7 @@
}
/*
- Retrive the (optional) _pack_ attribute from a type, the _fields_ attribute,
+ Retrieve the (optional) _pack_ attribute from a type, the _fields_ attribute,
and create an StgDictObject. Used for Structure and Union subclasses.
*/
int
@@ -447,7 +447,7 @@
stgdict->format = _ctypes_alloc_format_string(NULL, "T{");
} else {
/* PEP3118 doesn't support union, or packed structures (well,
- only standard packing, but we dont support the pep for
+ only standard packing, but we don't support the pep for
that). Use 'B' for bytes. */
stgdict->format = _ctypes_alloc_format_string(NULL, "B");
}
diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c
index 8c8777c..ea7a3d6 100644
--- a/Modules/_posixsubprocess.c
+++ b/Modules/_posixsubprocess.c
@@ -220,7 +220,7 @@
Py_ssize_t keep_seq_idx;
int fd_num;
/* As py_fds_to_keep is sorted we can loop through the list closing
- * fds inbetween any in the keep list falling within our range. */
+ * fds in between any in the keep list falling within our range. */
for (keep_seq_idx = 0; keep_seq_idx < num_fds_to_keep; ++keep_seq_idx) {
PyObject* py_keep_fd = PyTuple_GET_ITEM(py_fds_to_keep, keep_seq_idx);
int keep_fd = PyLong_AsLong(py_keep_fd);
@@ -775,11 +775,11 @@
static struct PyModuleDef _posixsubprocessmodule = {
- PyModuleDef_HEAD_INIT,
- "_posixsubprocess",
- module_doc,
- -1, /* No memory is needed. */
- module_methods,
+ PyModuleDef_HEAD_INIT,
+ "_posixsubprocess",
+ module_doc,
+ -1, /* No memory is needed. */
+ module_methods,
};
PyMODINIT_FUNC
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index 7123da5..93d4dbc 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -256,7 +256,7 @@
if (((TkappObject *)self)->threaded && \
((TkappObject *)self)->thread_id != Tcl_GetCurrentThread()) { \
PyErr_SetString(PyExc_RuntimeError, \
- "Calling Tcl from different appartment"); \
+ "Calling Tcl from different apartment"); \
return 0; \
}
diff --git a/Modules/expat/xmltok_impl.c b/Modules/expat/xmltok_impl.c
index 93328b8..2874bb3 100644
--- a/Modules/expat/xmltok_impl.c
+++ b/Modules/expat/xmltok_impl.c
@@ -1733,7 +1733,7 @@
for (; *ptr2; ptr1 += MINBPC(enc), ptr2++) {
if (end1 - ptr1 < MINBPC(enc)) {
/* This line cannot be executed. THe incoming data has already
- * been tokenized once, so imcomplete characters like this have
+ * been tokenized once, so incomplete characters like this have
* already been eliminated from the input. Retaining the
* paranoia check is still valuable, however.
*/
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 643148e..2074fe3 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -334,7 +334,7 @@
gets ever fixed, perhaps checking for sys/version.h would be
appropriate, which is 10/0 on the system with the bug. */
#ifndef HAVE_GETNAMEINFO
-/* This bug seems to be fixed in Jaguar. Ths easiest way I could
+/* This bug seems to be fixed in Jaguar. The easiest way I could
Find to check for Jaguar is that it has getnameinfo(), which
older releases don't have */
#undef HAVE_GETADDRINFO
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 3fd665b..5450ec6 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -1321,7 +1321,7 @@
"This module provides access to the Unicode Character Database which\n\
defines character properties for all Unicode characters. The data in\n\
this database is based on the UnicodeData.txt file version\n\
-" UNIDATA_VERSION " which is publically available from ftp://ftp.unicode.org/.\n\
+" UNIDATA_VERSION " which is publicly available from ftp://ftp.unicode.org/.\n\
\n\
The module uses the same names and symbols as defined by the\n\
UnicodeData File Format " UNIDATA_VERSION ".");