(wr)
| 81 | |
| 82 | @staticmethod |
| 83 | def remove(wr): |
| 84 | nonlocal self_weakref |
| 85 | |
| 86 | self = self_weakref() |
| 87 | if self is not None: |
| 88 | if self._iterating: |
| 89 | self._pending_removals.append(wr.key) |
| 90 | else: |
| 91 | _weakref._remove_dead_weakref(self.data, wr.key) |
| 92 | |
| 93 | self._KeyedRef = KeyedRef |
| 94 | self.clear() |
no test coverage detected