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

Method readline

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

Source from the content-addressed store, hash-verified

291 return self.file_read(n)
292
293 def readline(self):
294 if self.current_frame:
295 data = self.current_frame.readline()
296 if not data:
297 self.current_frame = None
298 return self.file_readline()
299 if data[-1] != b'\n'[0]:
300 raise UnpicklingError(
301 "pickle exhausted before end of frame")
302 return data
303 else:
304 return self.file_readline()
305
306 def load_frame(self, frame_size):
307 if self.current_frame and self.current_frame.read() != b'':

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