Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff7487f

Browse files
committed
Fix doc
1 parent b006172 commit ff7487f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Lib/_strptime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _calc_julian_from_V(iso_year, iso_week, iso_weekday):
310310
def _strptime(data_string, format="%a %b %d %H:%M:%S %Y"):
311311
"""Return a 3-tuple consisting of a time struct and an int containing
312312
the number of microseconds based on the input string and the
313-
format string, and the GMT offset."""
313+
format string, and the UTC offset."""
314314

315315
for index, arg in enumerate([data_string, format]):
316316
if not isinstance(arg, str):

Modules/_datetimemodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2951,15 +2951,14 @@ date_fromordinal(PyObject *cls, PyObject *args)
29512951
}
29522952

29532953

2954-
/* Return new date from time.strptime(). */
2954+
/* Return new date from date.strptime(). */
29552955
static PyObject *
29562956
date_strptime(PyObject *cls, PyObject *args)
29572957
{
29582958
PyObject *date = NULL;
29592959
PyObject *datetime;
29602960

29612961
datetime = datetime_strptime((PyObject *)&PyDateTime_DateTimeType, args);
2962-
29632962
if (datetime == NULL) {
29642963
return NULL;
29652964
}

0 commit comments

Comments
 (0)