def readline(self, size=-1):
        """Read a line from file, counting bytes."""
        data = self.rfile.readline(size)
        self.bytes_read += len(data)
        return data
Read a line from file, counting bytes.
cherrypy/lib/cpstats.py