Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ __enter__
Method
__enter__
Lib/test/test_ssl.py:2929–2932 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
2927
return
"<%s %s>"
% (self.__class__.__name__, self.server)
2928
2929
def
__enter__(self):
2930
self.start(threading.Event())
2931
self.flag.wait()
2932
return
self
2933
2934
def
__exit__(self, *args):
2935
if
support.verbose:
Callers
nothing calls this directly
Calls
3
start
Method · 0.95
Event
Method · 0.80
wait
Method · 0.45
Tested by
no test coverage detected