MCPcopy Create free account
hub / github.com/python-websockets/websockets / __enter__

Method __enter__

src/websockets/asyncio/async_timeout.py:153–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 self.update(deadline)
152
153 def __enter__(self) -> "Timeout":
154 warnings.warn(
155 "with timeout() is deprecated, use async with timeout() instead",
156 DeprecationWarning,
157 stacklevel=2,
158 )
159 self._do_enter()
160 return self
161
162 def __exit__(
163 self,

Callers

nothing calls this directly

Calls 1

_do_enterMethod · 0.95

Tested by

no test coverage detected