Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 22025f9

Browse filesBrowse files
committed
code review
1 parent eb65e29 commit 22025f9
Copy full SHA for 22025f9

File tree

Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed

‎Modules/_datetimemodule.c

Copy file name to clipboardExpand all lines: Modules/_datetimemodule.c
+4-5Lines changed: 4 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.