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

Method _command_complete

Lib/imaplib.py:1167–1182  ·  view source on GitHub ↗
(self, name, tag)

Source from the content-addressed store, hash-verified

1165
1166
1167 def _command_complete(self, name, tag):
1168 logout = (name == 'LOGOUT')
1169 # BYE is expected after LOGOUT
1170 if not logout:
1171 self._check_bye()
1172 try:
1173 typ, data = self._get_tagged_response(tag, expect_bye=logout)
1174 except self.abort as val:
1175 raise self.abort('command: %s => %s' % (name, val))
1176 except self.error as val:
1177 raise self.error('command: %s => %s' % (name, val))
1178 if not logout:
1179 self._check_bye()
1180 if typ == 'BAD':
1181 raise self.error('%s command error: %s %s' % (name, typ, data))
1182 return typ, data
1183
1184
1185 def _get_capabilities(self):

Callers 2

_simple_commandMethod · 0.95
__exit__Method · 0.80

Calls 4

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

Tested by

no test coverage detected