File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -6595,10 +6595,9 @@ _datetime_exec(PyObject *module)
6595
6595
PyDateTime_TimeZone_UTC = x ;
6596
6596
CAPI .TimeZone_UTC = PyDateTime_TimeZone_UTC ;
6597
6597
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.*/
6602
6601
delta = new_delta (-1 , 60 , 0 , 1 ); /* -23:59 */
6603
6602
if (delta == NULL ) {
6604
6603
return -1 ;
@@ -6636,7 +6635,7 @@ _datetime_exec(PyObject *module)
6636
6635
}
6637
6636
6638
6637
if (PyModule_AddObject (module , "datetime_CAPI" , x ) < 0 ) {
6639
- Py_DECREF (x );
6638
+ Py_XDECREF (x );
6640
6639
return -1 ;
6641
6640
}
6642
6641
You can’t perform that action at this time.
0 commit comments