def readline(self):
_complain_ifclosed(self.closed)<EOL>line = self.f.readline()<EOL>if self.__encoding:<EOL><INDENT>return line.decode(self.__encoding, self.__errors)<EOL><DEDENT>else:<EOL><INDENT>return line<EOL><DEDENT>
Read and return a line of text.

:rtype: str
:return: the next line of text in the file, including the
  newline character