We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff27dc4 commit 056cf08Copy full SHA for 056cf08
1 file changed
Modules/_datetimemodule.c
@@ -3301,14 +3301,13 @@ datetime_date_today_impl(PyTypeObject *type)
3301
type);
3302
}
3303
3304
+ /* Note well: since today() is a class method, it may not call
3305
+ * date.fromtimestamp, e.g., it may call datetime.fromtimestamp.
3306
+ */
3307
PyTime_t ts;
3308
if (PyTime_Time(&ts) < 0) {
3309
return NULL;
3310
-
- /* Note well: since today() is a class method, it may not call
- * date.fromtimestamp, e.g., it may call datetime.fromtimestamp.
3311
- */
3312
PyObject *time = PyFloat_FromDouble(PyTime_AsSecondsDouble(ts));
3313
if (time == NULL) {
3314
0 commit comments