

def retrieve(self):
    "Retrieves the static page contents at the proxy's URL."
    self.connect()
    if log:
        log.info(('Retrieving %s...' % self.masked_url))
    try:
        return self.proxy.document_src()
    except:
        (exc_type, exc, tb) = sys.exc_info()
        if log:
            message = str(exc).replace(self.url, self.masked_url)
            log.error(('Failed to download content at %s: %s' % (self.masked_url, message)))
        reraise(exc_type, exc, tb)

dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/_release.py _ZopeProxy.retrieve/original