diff options
author | luzpaz <luzpaz@users.noreply.github.com> | 2017-11-05 13:37:50 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-11-05 13:37:50 (GMT) |
commit | a5293b4ff2c1b5446947b4986f98ecf5d52432d4 (patch) | |
tree | be2f5e686be63814c02eabc61a899631ec7a08ac /Python | |
parent | cf296537f164abeacd83011239881f75f290ed31 (diff) | |
download | cpython-a5293b4ff2c1b5446947b4986f98ecf5d52432d4.zip cpython-a5293b4ff2c1b5446947b4986f98ecf5d52432d4.tar.gz cpython-a5293b4ff2c1b5446947b4986f98ecf5d52432d4.tar.bz2 |
Fix miscellaneous typos (#4275)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/_warnings.c | 2 | ||||
-rw-r--r-- | Python/ast.c | 2 | ||||
-rw-r--r-- | Python/pytime.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Python/_warnings.c b/Python/_warnings.c index a9f9641..aa80395 100644 --- a/Python/_warnings.c +++ b/Python/_warnings.c @@ -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()) diff --git a/Python/ast.c b/Python/ast.c index a6cc0f7..79cef70 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -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) diff --git a/Python/pytime.c b/Python/pytime.c index 5a98d1d..0e94131 100644 --- a/Python/pytime.c +++ b/Python/pytime.c @@ -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)); |