(self, weakcontainer)
| 167 | # This technique should be relatively thread-safe (since sets are). |
| 168 | |
| 169 | def __init__(self, weakcontainer): |
| 170 | # Don't create cycles |
| 171 | self.weakcontainer = IdentityWeakRef(weakcontainer) |
| 172 | |
| 173 | def __enter__(self): |
| 174 | w = self.weakcontainer() |
nothing calls this directly
no test coverage detected