def __iter__(self):
if self._closed:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return self<EOL>
Returns an iterator that can be used to iterate over the lines in this
file.  This iterator happens to return the file itself, since a file is
its own iterator.

:raises: ``ValueError`` -- if the file is closed.