def fetch_url(url):
    if sys.version_info[0] == 2:
        import urllib2
        try:
            urlfile = urllib2.urlopen(url)
        except:
            # 404 for example
            return None
        return urlfile.read()
    else:
        import urllib.request
        try:
            urlfile = urllib.request.urlopen(url)
        except:
            # 404 for example
            return None
        return urlfile.read()
dataset/ETHPy150Open cztomczak/cefpython/cefpython/cef3/linux/installer/find-deps.py/fetch_url/original