MCPcopy
hub / github.com/pyload/pyload / readlines

Method readlines

module/lib/wsgiserver/__init__.py:223–234  ·  view source on GitHub ↗
(self, sizehint=0)

Source from the content-addressed store, hash-verified

221 return ''.join(res)
222
223 def readlines(self, sizehint=0):
224 # Shamelessly stolen from StringIO
225 total = 0
226 lines = []
227 line = self.readline()
228 while line:
229 lines.append(line)
230 total += len(line)
231 if 0 < sizehint <= total:
232 break
233 line = self.readline()
234 return lines
235
236 def close(self):
237 self.rfile.close()

Callers 5

getLogMethod · 0.80
initReportFunction · 0.80
packagetools.pyFile · 0.80
loadAccountsMethod · 0.80
decryptMethod · 0.80

Calls 2

readlineMethod · 0.95
appendMethod · 0.45

Tested by

no test coverage detected