def __next__(self):
_complain_ifclosed(self.closed)<EOL>line = self.readline()<EOL>if not line:<EOL><INDENT>raise StopIteration<EOL><DEDENT>return line<EOL>
Return the next input line, or raise :class:`StopIteration`
when EOF is hit.