Remove self.lock from this thread's _blocking_on list.
(self, *args, **kwargs)
| 171 | self.blocked_on.append(self.lock) |
| 172 | |
| 173 | def __exit__(self, *args, **kwargs): |
| 174 | """Remove self.lock from this thread's _blocking_on list.""" |
| 175 | self.blocked_on.remove(self.lock) |
| 176 | |
| 177 | |
| 178 | class _DeadlockError(RuntimeError): |