Skip to content

Commit 2ee60e2

Browse files
committed
revert this as this would be intended at gh-104796
1 parent c6b42ee commit 2ee60e2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Modules/_testsinglephase.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,10 @@ init_module(PyObject *module, module_state *state)
140140
if (initialized == NULL) {
141141
return -1;
142142
}
143-
int rc = PyModule_AddObjectRef(module, "_module_initialized", initialized);
144-
Py_DECREF(initialized);
145-
if (rc != 0) {
143+
if (PyModule_AddObjectRef(module, "_module_initialized", initialized) != 0) {
146144
return -1;
147145
}
146+
148147
return 0;
149148
}
150149

0 commit comments

Comments
 (0)