]> granicus.if.org Git - python/commit
bpo-9263: Use _PyObject_ASSERT() in gcmodule.c (GH-10112)
authorVictor Stinner <vstinner@redhat.com>
Fri, 26 Oct 2018 16:00:13 +0000 (18:00 +0200)
committerGitHub <noreply@github.com>
Fri, 26 Oct 2018 16:00:13 +0000 (18:00 +0200)
commita4b2bc70f69d93d8252861b455052c051b7167ae
tree69cefdd37cdddeeabc83d6e459fea3441704895f
parent24702044afb1d4ad7568bf6aa7450b14dc44a38f
bpo-9263: Use _PyObject_ASSERT() in gcmodule.c (GH-10112)

Replace assert() with _PyObject_ASSERT() in Modules/gcmodule.c
to dump the faulty object on assertion failure to ease debugging.

Fix also indentation of a large comment.

Initial patch written by David Malcolm.

Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
Modules/gcmodule.c