Skip to content

Commit d6aa03d

Browse files
committed
Fix _Py_ID(floor) usage in datetime C API
1 parent 9788e73 commit d6aa03d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_datetimemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1885,7 +1885,7 @@ make_sreplacement(PyObject *object)
18851885
return NULL;
18861886
}
18871887

1888-
PyObject *temp = PyObject_CallMethodObjArgs(math, &_Py_ID(floor), timestamp, NULL);
1888+
PyObject *temp = PyObject_CallMethod(math, "floor", "O", timestamp);
18891889
Py_DECREF(math);
18901890
Py_DECREF(timestamp);
18911891
if (temp == NULL) {

0 commit comments

Comments
 (0)