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

Method _getlongresp

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

Source from the content-addressed store, hash-verified

161 # Internal: get a response plus following text from the server.
162
163 def _getlongresp(self):
164 resp = self._getresp()
165 list = []; octets = 0
166 line, o = self._getline()
167 while line != b'.':
168 if line.startswith(b'..'):
169 o = o-1
170 line = line[1:]
171 octets = octets + o
172 list.append(line)
173 line, o = self._getline()
174 return resp, list, octets
175
176
177 # Internal: send a command and get the response

Callers 1

_longcmdMethod · 0.95

Calls 4

_getrespMethod · 0.95
_getlineMethod · 0.95
startswithMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected