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

Method readline

Lib/fileinput.py:290–299  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

288 self._isstdin = False
289
290 def readline(self):
291 while True:
292 line = self._readline()
293 if line:
294 self._filelineno += 1
295 return line
296 if not self._file:
297 return line
298 self.nextfile()
299 # repeat with next file
300
301 def _readline(self):
302 if not self._files:

Callers 3

test_buffer_sizesMethod · 0.95
test_zero_byte_filesMethod · 0.95

Calls 2

_readlineMethod · 0.95
nextfileMethod · 0.95

Tested by 3

test_buffer_sizesMethod · 0.76
test_zero_byte_filesMethod · 0.76