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

Method quit

tools/python-3.11.9-amd64/Lib/nntplib.py:929–936  ·  view source on GitHub ↗

Process a QUIT command and close the socket. Returns: - resp: server response if successful

(self)

Source from the content-addressed store, hash-verified

927 self.sock.close()
928
929 def quit(self):
930 """Process a QUIT command and close the socket. Returns:
931 - resp: server response if successful"""
932 try:
933 resp = self._shortcmd('QUIT')
934 finally:
935 self._close()
936 return resp
937
938 def login(self, user=None, password=None, usenetrc=True):
939 if self.authenticated:

Callers 2

__exit__Method · 0.95
nntplib.pyFile · 0.45

Calls 2

_shortcmdMethod · 0.95
_closeMethod · 0.95

Tested by

no test coverage detected