Skip to content

Commit e00aa62

Browse files
committed
mea culpa!
1 parent 056cf08 commit e00aa62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Modules/_datetimemodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3301,9 +3301,6 @@ datetime_date_today_impl(PyTypeObject *type)
33013301
type);
33023302
}
33033303

3304-
/* Note well: since today() is a class method, it may not call
3305-
* date.fromtimestamp, e.g., it may call datetime.fromtimestamp.
3306-
*/
33073304
PyTime_t ts;
33083305
if (PyTime_Time(&ts) < 0) {
33093306
return NULL;
@@ -3312,6 +3309,9 @@ datetime_date_today_impl(PyTypeObject *type)
33123309
if (time == NULL) {
33133310
return NULL;
33143311
}
3312+
/* Note well: since today() is a class method, it may not call
3313+
* date.fromtimestamp, e.g., it may call datetime.fromtimestamp.
3314+
*/
33153315
PyObject *result = PyObject_CallMethodOneArg((PyObject*)type, &_Py_ID(fromtimestamp), time);
33163316
Py_DECREF(time);
33173317
return result;

0 commit comments

Comments
 (0)