MCPcopy
hub / github.com/psycopg/psycopg / __enter__

Method __enter__

psycopg/psycopg/_pipeline.py:60–63  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 raise ex.with_traceback(None)
59
60 def __enter__(self) -> Self:
61 with self._lock:
62 self._conn.wait(self._enter_gen())
63 return self
64
65 def __exit__(
66 self,

Callers

nothing calls this directly

Calls 2

waitMethod · 0.45
_enter_genMethod · 0.45

Tested by

no test coverage detected