def read_content(self):
        """Return data for this URL. Can be overridden in subclasses."""
        buf = StringIO()
        data = self.read_content_chunk()
        while data:
            if buf.tell() + len(data) > self.aggregate.config["maxfilesizedownload"]:
                raise LinkCheckerError(_("File size too large"))
            buf.write(data)
            data = self.read_content_chunk()
        return buf.getvalue()
def read_content ( self ) : buf = StringIO ( ) data = self . read_content_chunk ( ) while data : if buf . tell ( ) + len ( data ) > self . aggregate . config [ "maxfilesizedownload" ] : raise LinkCheckerError ( _ ( "File size too large" ) ) buf . write ( data ) data = self . read_content_chunk ( ) return buf . getvalue ( )
Return data for this URL. Can be overridden in subclasses.