MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __exit__

Method __exit__

tools/python-3.11.9-amd64/Lib/nntplib.py:387–396  ·  view source on GitHub ↗
(self, *args)

Source from the content-addressed store, hash-verified

385 return self
386
387 def __exit__(self, *args):
388 is_connected = lambda: hasattr(self, "file")
389 if is_connected():
390 try:
391 self.quit()
392 except (OSError, EOFError):
393 pass
394 finally:
395 if is_connected():
396 self._close()
397
398 def _create_socket(self, timeout):
399 if timeout is not None and not timeout:

Callers

nothing calls this directly

Calls 2

quitMethod · 0.95
_closeMethod · 0.95

Tested by

no test coverage detected