MCPcopy Index your code
hub / github.com/RustPython/RustPython / _command_complete

Method _command_complete

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

Source from the content-addressed store, hash-verified

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