Skip to content

Commit

Permalink
chore: clarify condition for visiting the type object
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Aug 3, 2024
1 parent 6bb37a5 commit c35f95e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/zope/interface/_zope_interface_coptimizations.c
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ SB_traverse(SB* self, visitproc visit, void* arg)
* https://docs.python.org/3/howto/isolating-extensions.html
* #tp-traverse-in-python-3-8-and-lower
*/
#if PY_VERSION_HEX > 0x03090000
#if USE_HEAP_TYPES && PY_VERSION_HEX > 0x03090000
Py_VISIT(Py_TYPE(self));
#endif
Py_VISIT(self->_implied);
Expand Down Expand Up @@ -1113,7 +1113,7 @@ LB_traverse(LB* self, visitproc visit, void* arg)
* https://docs.python.org/3/howto/isolating-extensions.html
* #tp-traverse-in-python-3-8-and-lower
*/
#if PY_VERSION_HEX > 0x03090000
#if USE_HEAP_TYPES && PY_VERSION_HEX > 0x03090000
Py_VISIT(Py_TYPE(self));
#endif
Py_VISIT(self->_cache);
Expand Down

0 comments on commit c35f95e

Please sign in to comment.