(self)
| 11 | |
| 12 | class _ContextManagerMixin: |
| 13 | async def __aenter__(self): |
| 14 | await self.acquire() |
| 15 | # We have no use for the "as ..." clause in the with |
| 16 | # statement for locks. |
| 17 | return None |
| 18 | |
| 19 | async def __aexit__(self, exc_type, exc, tb): |
| 20 | self.release() |