File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments