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

Method __next__

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

Source from the content-addressed store, hash-verified

247 return self
248
249 def __next__(self):
250 while True:
251 line = self._readline()
252 if line:
253 self._filelineno += 1
254 return line
255 if not self._file:
256 raise StopIteration
257 self.nextfile()
258 # repeat with next file
259
260 def nextfile(self):
261 savestdout = self._savestdout

Callers

nothing calls this directly

Calls 2

_readlineMethod · 0.95
nextfileMethod · 0.95

Tested by

no test coverage detected