Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9b03e59

Browse files
committed
Remove an obsolete comment and a "return" before fallig off the end of a
void function.
1 parent 4dcb85b commit 9b03e59

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

Modules/_weakref.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -736,7 +736,6 @@ cleanup_helper(PyObject *object)
736736
|| !PyType_SUPPORTS_WEAKREFS(object->ob_type)
737737
|| object->ob_refcnt != 0) {
738738
PyErr_BadInternalCall();
739-
/* not sure what we should return here */
740739
return;
741740
}
742741
list = GET_WEAKREFS_LISTPTR(object);
@@ -792,7 +791,6 @@ cleanup_helper(PyObject *object)
792791
Py_DECREF(tuple);
793792
}
794793
}
795-
return;
796794
}
797795

798796

0 commit comments

Comments
 (0)