Skip to content

Commit 22025f9

Browse files
committed
code review
1 parent eb65e29 commit 22025f9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Modules/_datetimemodule.c

+4-5
Original file line numberDiff line numberDiff line change
@@ -6595,10 +6595,9 @@ _datetime_exec(PyObject *module)
65956595
PyDateTime_TimeZone_UTC = x;
65966596
CAPI.TimeZone_UTC = PyDateTime_TimeZone_UTC;
65976597

6598-
/* bpo-37642: These attributes are rounded to the nearest minute for
6599-
* backwards compatibility, even though the constructor will accept a
6600-
* wider range of values. This may change in the future.
6601-
*/
6598+
/* bpo-37642: These attributes are rounded to the nearest minute for backwards
6599+
* compatibility, even though the constructor will accept a wider range of
6600+
* values. This may change in the future.*/
66026601
delta = new_delta(-1, 60, 0, 1); /* -23:59 */
66036602
if (delta == NULL) {
66046603
return -1;
@@ -6636,7 +6635,7 @@ _datetime_exec(PyObject *module)
66366635
}
66376636

66386637
if (PyModule_AddObject(module, "datetime_CAPI", x) < 0) {
6639-
Py_DECREF(x);
6638+
Py_XDECREF(x);
66406639
return -1;
66416640
}
66426641

0 commit comments

Comments
 (0)