Process a QUIT command and close the socket. Returns: - resp: server response if successful
(self)
| 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: |
no test coverage detected