mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Issue #27171: Fix typos in documentation, comments, and test function names
This commit is contained in:
parent
1b207c55a4
commit
e26da7c03a
30 changed files with 51 additions and 51 deletions
|
@ -1073,7 +1073,7 @@ format_utcoffset(char *buf, size_t buflen, const char *sep,
|
|||
minutes = divmod(seconds, 60, &seconds);
|
||||
hours = divmod(minutes, 60, &minutes);
|
||||
assert(seconds == 0);
|
||||
/* XXX ignore sub-minute data, curently not allowed. */
|
||||
/* XXX ignore sub-minute data, currently not allowed. */
|
||||
PyOS_snprintf(buf, buflen, "%c%02d%s%02d", sign, hours, sep, minutes);
|
||||
|
||||
return 0;
|
||||
|
@ -3304,7 +3304,7 @@ timezone_str(PyDateTime_TimeZone *self)
|
|||
Py_DECREF(offset);
|
||||
minutes = divmod(seconds, 60, &seconds);
|
||||
hours = divmod(minutes, 60, &minutes);
|
||||
/* XXX ignore sub-minute data, curently not allowed. */
|
||||
/* XXX ignore sub-minute data, currently not allowed. */
|
||||
assert(seconds == 0);
|
||||
return PyUnicode_FromFormat("UTC%c%02d:%02d", sign, hours, minutes);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue