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

Method __enter__

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

Source from the content-addressed store, hash-verified

2645 self._acquired = 0
2646
2647 def __enter__(self):
2648 if self._acquired:
2649 raise exceptions.InterfaceError(
2650 'cannot perform operation: another operation is in progress')
2651 self._acquired = 1
2652
2653 def __exit__(self, t, e, tb):
2654 self._acquired = 0

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected