summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2017-11-05 13:37:50 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2017-11-05 13:37:50 (GMT)
commita5293b4ff2c1b5446947b4986f98ecf5d52432d4 (patch)
treebe2f5e686be63814c02eabc61a899631ec7a08ac /Modules
parentcf296537f164abeacd83011239881f75f290ed31 (diff)
downloadcpython-a5293b4ff2c1b5446947b4986f98ecf5d52432d4.zip
cpython-a5293b4ff2c1b5446947b4986f98ecf5d52432d4.tar.gz
cpython-a5293b4ff2c1b5446947b4986f98ecf5d52432d4.tar.bz2
Fix miscellaneous typos (#4275)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/_ctypes.c2
-rw-r--r--Modules/_ctypes/stgdict.c4
-rw-r--r--Modules/_posixsubprocess.c12
-rw-r--r--Modules/_tkinter.c2
-rw-r--r--Modules/expat/xmltok_impl.c2
-rw-r--r--Modules/socketmodule.c2
-rw-r--r--Modules/unicodedata.c2
7 files changed, 13 insertions, 13 deletions
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 @@ _build_callargs(PyCFuncPtrObject *self, PyObject *argtypes,
/*
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 @@ MakeAnonFields(PyObject *type)
}
/*
- 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 @@ PyCStructUnionType_update_stgdict(PyObject *type, PyObject *fields, int isStruct
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 @@ _close_fds_by_brute_force(long start_fd, PyObject *py_fds_to_keep)
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 PyMethodDef module_methods[] = {
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 @@ static PyThreadState *tcl_tstate = NULL;
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 @@ PREFIX(nameMatchesAscii)(const ENCODING *UNUSED_P(enc), const char *ptr1,
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 @@ http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/net/getaddrinfo.c.diff?r1=1.82&
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 @@ PyDoc_STRVAR(unicodedata_docstring,
"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 ".");