Commit 35ee888
committed
Fix double-set of gc_finalized preventing __del__ from being called
gc_state set gc_finalized before calling try_call_finalizer, but
try_call_finalizer internally checks gc_finalized and skips __del__
if already set. Remove the redundant set_gc_finalized call.1 parent 8b7ddd2 commit 35ee888
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
542 | 542 | | |
543 | 543 | | |
544 | 544 | | |
545 | | - | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
546 | 548 | | |
547 | | - | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
| 549 | + | |
552 | 550 | | |
553 | 551 | | |
554 | 552 | | |
| |||
0 commit comments