diff options
author | Leo Arias <leo.arias@canonical.com> | 2018-02-04 00:36:10 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2018-02-04 00:36:10 (GMT) |
commit | c3d9508ff22ece9a96892b628dd5813e2fb0cd80 (patch) | |
tree | 56271a3b3e3681e47e97ec2dca926bc9cb891a5e /Modules | |
parent | 589c718a8e3bde017350f248f7f1c009240eb52b (diff) | |
download | cpython-c3d9508ff22ece9a96892b628dd5813e2fb0cd80.zip cpython-c3d9508ff22ece9a96892b628dd5813e2fb0cd80.tar.gz cpython-c3d9508ff22ece9a96892b628dd5813e2fb0cd80.tar.bz2 |
bpo-32746: Fix multiple typos (GH-5144)
Fix typos found by codespell in docs, docstrings, and comments.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_asynciomodule.c | 2 | ||||
-rw-r--r-- | Modules/_datetimemodule.c | 2 | ||||
-rw-r--r-- | Modules/_hashopenssl.c | 2 | ||||
-rw-r--r-- | Modules/_pickle.c | 2 | ||||
-rw-r--r-- | Modules/md5module.c | 2 | ||||
-rw-r--r-- | Modules/socketmodule.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/Modules/_asynciomodule.c b/Modules/_asynciomodule.c index a5cf687..e82425b 100644 --- a/Modules/_asynciomodule.c +++ b/Modules/_asynciomodule.c @@ -187,7 +187,7 @@ is_coroutine(PyObject *coro) return _is_coroutine(coro); } - /* either an error has occured or + /* either an error has occurred or type(coro) is in iscoroutine_typecache */ return has_it; diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c index 4a33f2d..b69fcdf 100644 --- a/Modules/_datetimemodule.c +++ b/Modules/_datetimemodule.c @@ -3420,7 +3420,7 @@ Inconsistent: PyErr_SetString(PyExc_ValueError, "fromutc: tz.dst() gave" "inconsistent results; cannot convert"); - /* fall thru to failure */ + /* fall through to failure */ Fail: Py_XDECREF(off); Py_XDECREF(dst); diff --git a/Modules/_hashopenssl.c b/Modules/_hashopenssl.c index 50fe9d5..44d3f63 100644 --- a/Modules/_hashopenssl.c +++ b/Modules/_hashopenssl.c @@ -962,7 +962,7 @@ generate_hash_name_list(void) * This macro generates constructor function definitions for specific * hash algorithms. These constructors are much faster than calling * the generic one passing it a python string and are noticeably - * faster than calling a python new() wrapper. Thats important for + * faster than calling a python new() wrapper. That is important for * code that wants to make hashes of a bunch of small strings. * The first call will lazy-initialize, which reports an exception * if initialization fails. diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 05f9a02..9525ad6 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -1015,7 +1015,7 @@ _Pickler_OpcodeBoundary(PicklerObject *self) if(_Pickler_CommitFrame(self)) { return -1; } - /* Flush the content of the commited frame to the underlying + /* Flush the content of the committed frame to the underlying * file and reuse the pickler buffer for the next frame so as * to limit memory usage when dumping large complex objects to * a file. diff --git a/Modules/md5module.c b/Modules/md5module.c index 6b11f0b..b019f82 100644 --- a/Modules/md5module.c +++ b/Modules/md5module.c @@ -293,7 +293,7 @@ md5_done(struct md5_state *md5, unsigned char *out) md5->curlen = 0; } - /* pad upto 56 bytes of zeroes */ + /* pad up to 56 bytes of zeroes */ while (md5->curlen < 56) { md5->buf[md5->curlen++] = (unsigned char)0; } diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index ab3465a..13936aa 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -6156,7 +6156,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs) } #if defined(__APPLE__) && defined(AI_NUMERICSERV) if ((flags & AI_NUMERICSERV) && (pptr == NULL || (pptr[0] == '0' && pptr[1] == 0))) { - /* On OSX upto at least OSX 10.8 getaddrinfo crashes + /* On OSX up to at least OSX 10.8 getaddrinfo crashes * if AI_NUMERICSERV is set and the servname is NULL or "0". * This workaround avoids a segfault in libsystem. */ |