bpo-32746: Fix multiple typos (GH-5144)

Fix typos found by codespell in docs, docstrings, and comments.
This commit is contained in:
Leo Arias 2018-02-03 18:36:10 -06:00 committed by Terry Jan Reedy
parent 589c718a8e
commit c3d9508ff2
22 changed files with 34 additions and 35 deletions

View file

@ -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;

View file

@ -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);

View file

@ -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.

View file

@ -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.

View file

@ -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;
}

View file

@ -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.
*/