def next(self):
line = self.readline()<EOL>if not line:<EOL><INDENT>raise StopIteration<EOL><DEDENT>return line<EOL>
Returns the next line from the input, or raises L{StopIteration} when
EOF is hit.  Unlike python file objects, it's okay to mix calls to
C{next} and L{readline}.

@raise StopIteration: when the end of the file is reached.

@return: a line read from the file.
@rtype: str