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

Method _getresp

Lib/poplib.py:153–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

151 # Raise 'error_proto' if the response doesn't start with '+'.
152
153 def _getresp(self):
154 resp, o = self._getline()
155 if self._debugging > 1: print('*resp*', repr(resp))
156 if not resp.startswith(b'+'):
157 raise error_proto(resp)
158 return resp
159
160
161 # Internal: get a response plus following text from the server.

Callers 3

__init__Method · 0.95
_getlongrespMethod · 0.95
_shortcmdMethod · 0.95

Calls 5

_getlineMethod · 0.95
reprFunction · 0.85
error_protoClass · 0.70
printFunction · 0.50
startswithMethod · 0.45

Tested by

no test coverage detected