MCPcopy Index your code
hub / github.com/python/cpython / __exit__

Method __exit__

Lib/socket.py:244–246  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

242 return self
243
244 def __exit__(self, *args):
245 if not self._closed:
246 self.close()
247
248 def __repr__(self):
249 """Wrap __repr__() to reveal the real class name and socket

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected