summaryrefslogtreecommitdiffstats
path: root/Modules/_datetimemodule.c
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-06-02 10:07:09 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-06-02 10:07:09 (GMT)
commite26da7c03a714faa115fe6b708ef0730119aa4b3 (patch)
tree26d6a9584ddde0d84f1011fe87662b3b84a39428 /Modules/_datetimemodule.c
parent1b207c55a446ab8b8bae2efc8407ee130ba62012 (diff)
downloadcpython-e26da7c03a714faa115fe6b708ef0730119aa4b3.zip
cpython-e26da7c03a714faa115fe6b708ef0730119aa4b3.tar.gz
cpython-e26da7c03a714faa115fe6b708ef0730119aa4b3.tar.bz2
Issue #27171: Fix typos in documentation, comments, and test function names
Diffstat (limited to 'Modules/_datetimemodule.c')
-rw-r--r--Modules/_datetimemodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_datetimemodule.c b/Modules/_datetimemodule.c
index c9ba9f7..f419cb2 100644
--- a/Modules/_datetimemodule.c
+++ b/Modules/_datetimemodule.c
@@ -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);
}