

def _DownloadPageContent(download_url):
    'Downloads the page content.\n\n  Args:\n    download_url: the URL where to download the page content.\n\n  Returns:\n    The page content if successful, None otherwise.\n  '
    if (not download_url):
        return
    url_object = urlopen(download_url)
    if ((not url_object) or (url_object.code != 200)):
        return
    return url_object.read()

dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/dependencies.py _DownloadPageContent/original