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

Method _getresp

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

Source from the content-addressed store, hash-verified

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

Callers 3

__init__Method · 0.95
_getlongrespMethod · 0.95
_shortcmdMethod · 0.95

Calls 3

_getlineMethod · 0.95
error_protoClass · 0.70
startswithMethod · 0.45

Tested by

no test coverage detected