python类ExtractionError()的实例源码

ssl_support.py 文件源码 项目:chihu 作者: yelongyu 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:ShelbySearch 作者: Agentscreech 项目源码 文件源码 阅读 35 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:where2live 作者: fbessez 项目源码 文件源码 阅读 30 收藏 0 点赞 0 评论 0
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass
ssl_support.py 文件源码 项目:pyetje 作者: rorlika 项目源码 文件源码 阅读 33 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:respeaker_virtualenv 作者: respeaker 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:Tencent_Cartoon_Download 作者: Fretice 项目源码 文件源码 阅读 22 收藏 0 点赞 0 评论 0
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass
ssl_support.py 文件源码 项目:Problematica-public 作者: TechMaz 项目源码 文件源码 阅读 31 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:bawk 作者: jttwnsnd 项目源码 文件源码 阅读 33 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:infinite-lorem-ipsum 作者: patjm1992 项目源码 文件源码 阅读 35 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:coolrelation 作者: mrtial 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass
ssl_support.py 文件源码 项目:Price-Comparator 作者: Thejas-1 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:fieldsight-kobocat 作者: awemulya 项目源码 文件源码 阅读 32 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:chalktalk_docs 作者: loremIpsum1771 项目源码 文件源码 阅读 50 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:python-group-proj 作者: Sharcee 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
def _certifi_where():
    try:
        return __import__('certifi').where()
    except (ImportError, ResolutionError, ExtractionError):
        pass
ssl_support.py 文件源码 项目:covar_me_app 作者: CovarMe 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:PDF_text_extract 作者: theemadnes 项目源码 文件源码 阅读 29 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:wttd-dojo 作者: diegosorrilha 项目源码 文件源码 阅读 26 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:wttd-dojo 作者: diegosorrilha 项目源码 文件源码 阅读 31 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name == 'nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        import certifi
        return certifi.where()
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:Flask-NvRay-Blog 作者: rui7157 项目源码 文件源码 阅读 28 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None
ssl_support.py 文件源码 项目:Callandtext 作者: iaora 项目源码 文件源码 阅读 27 收藏 0 点赞 0 评论 0
def find_ca_bundle():
    """Return an existing CA bundle path, or None"""
    if os.name=='nt':
        return get_win_certfile()
    else:
        for cert_path in cert_paths:
            if os.path.isfile(cert_path):
                return cert_path
    try:
        return pkg_resources.resource_filename('certifi', 'cacert.pem')
    except (ImportError, ResolutionError, ExtractionError):
        return None


问题


面经


文章

微信
公众号

扫码关注公众号