def __next__ (self):    
result = self.readline()<EOL>if result == self._empty_buffer:<EOL><INDENT>raise StopIteration<EOL><DEDENT>return result<EOL>
This is to support iterators over a file-like object.