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

Method _command_complete

tools/python-3.11.9-amd64/Lib/imaplib.py:1041–1056  ·  view source on GitHub ↗
(self, name, tag)

Source from the content-addressed store, hash-verified

1039
1040
1041 def _command_complete(self, name, tag):
1042 logout = (name == 'LOGOUT')
1043 # BYE is expected after LOGOUT
1044 if not logout:
1045 self._check_bye()
1046 try:
1047 typ, data = self._get_tagged_response(tag, expect_bye=logout)
1048 except self.abort as val:
1049 raise self.abort('command: %s => %s' % (name, val))
1050 except self.error as val:
1051 raise self.error('command: %s => %s' % (name, val))
1052 if not logout:
1053 self._check_bye()
1054 if typ == 'BAD':
1055 raise self.error('%s command error: %s %s' % (name, typ, data))
1056 return typ, data
1057
1058
1059 def _get_capabilities(self):

Callers 1

_simple_commandMethod · 0.95

Calls 4

_check_byeMethod · 0.95
_get_tagged_responseMethod · 0.95
abortMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected