MCPcopy Create free account
hub / github.com/MagicStack/asyncpg / __enter__

Method __enter__

asyncpg/connection.py:2702–2706  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2700 self._acquired = 0
2701
2702 def __enter__(self):
2703 if self._acquired:
2704 raise exceptions.InterfaceError(
2705 'cannot perform operation: another operation is in progress')
2706 self._acquired = 1
2707
2708 def __exit__(self, t, e, tb):
2709 self._acquired = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected