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

Method readline

Lib/pickle.py:297–308  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

295 return self._chunked_file_read(n)
296
297 def readline(self):
298 if self.current_frame:
299 data = self.current_frame.readline()
300 if not data:
301 self.current_frame = None
302 return self.file_readline()
303 if data[-1] != b'\n'[0]:
304 raise UnpicklingError(
305 "pickle exhausted before end of frame")
306 return data
307 else:
308 return self.file_readline()
309
310 def _chunked_file_read(self, size):
311 cursize = min(size, _MIN_READ_BUF_SIZE)

Callers 10

load_persidMethod · 0.45
load_intMethod · 0.45
load_longMethod · 0.45
load_floatMethod · 0.45
load_stringMethod · 0.45
load_unicodeMethod · 0.45
load_instMethod · 0.45
load_globalMethod · 0.45
load_getMethod · 0.45
load_putMethod · 0.45

Calls 1

UnpicklingErrorClass · 0.85

Tested by

no test coverage detected