Skip to content

Commit 056cf08

Browse files
committed
mv the comment
1 parent ff27dc4 commit 056cf08

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Modules/_datetimemodule.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3301,14 +3301,13 @@ 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+
*/
33043307
PyTime_t ts;
33053308
if (PyTime_Time(&ts) < 0) {
33063309
return NULL;
33073310
}
3308-
3309-
/* Note well: since today() is a class method, it may not call
3310-
* date.fromtimestamp, e.g., it may call datetime.fromtimestamp.
3311-
*/
33123311
PyObject *time = PyFloat_FromDouble(PyTime_AsSecondsDouble(ts));
33133312
if (time == NULL) {
33143313
return NULL;

0 commit comments

Comments
 (0)