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

Method logout

Lib/imaplib.py:736–746  ·  view source on GitHub ↗

Shutdown connection to server. (typ, [data]) = .logout() Returns server 'BYE' response.

(self)

Source from the content-addressed store, hash-verified

734
735
736 def logout(self):
737 """Shutdown connection to server.
738
739 (typ, [data]) = <instance>.logout()
740
741 Returns server 'BYE' response.
742 """
743 self.state = 'LOGOUT'
744 typ, dat = self._simple_command('LOGOUT')
745 self.shutdown()
746 return typ, dat
747
748
749 def lsub(self, directory='""', pattern='*'):

Callers 5

__exit__Method · 0.95
test_logoutMethod · 0.80
reaped_pairMethod · 0.80

Calls 2

_simple_commandMethod · 0.95
shutdownMethod · 0.95

Tested by 4

test_logoutMethod · 0.64
reaped_pairMethod · 0.64