Fix miscellaneous typos (#4275)

This commit is contained in:
luzpaz 2017-11-05 07:37:50 -06:00 committed by Serhiy Storchaka
parent cf296537f1
commit a5293b4ff2
50 changed files with 82 additions and 82 deletions

View file

@ -391,7 +391,7 @@ call_show_warning(PyObject *category, PyObject *text, PyObject *message,
/* If the source parameter is set, try to get the Python implementation.
The Python implementation is able to log the traceback where the source
was allocated, whereas the C implementation doesnt. */
was allocated, whereas the C implementation doesn't. */
show_fn = get_warnings_attr("_showwarnmsg", source != NULL);
if (show_fn == NULL) {
if (PyErr_Occurred())

View file

@ -4287,7 +4287,7 @@ static void fstring_shift_node_locations(node *n, int lineno, int col_offset)
`parent` is the enclosing node.
`n` is the node which locations are going to be fixed relative to parent.
`expr_str` is the child node's string representation, incuding braces.
`expr_str` is the child node's string representation, including braces.
*/
static void
fstring_fix_node_location(const node *parent, node *n, char *expr_str)

View file

@ -817,7 +817,7 @@ pymonotonic(_PyTime_t *tp, _Py_clock_info_t *info, int raise)
}
/* Check that timebase.numer and timebase.denom can be casted to
_PyTime_t. In pratice, timebase uses uint32_t, so casting cannot
_PyTime_t. In practice, timebase uses uint32_t, so casting cannot
overflow. At the end, only make sure that the type is uint32_t
(_PyTime_t is 64-bit long). */
assert(sizeof(timebase.numer) < sizeof(_PyTime_t));