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

Method _getlongresp

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

Source from the content-addressed store, hash-verified

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