__init__.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:MKFQ 作者: maojingios 项目源码 文件源码
def _available_backends():
    global _available_backends_list

    if _available_backends_list is None:
        _available_backends_list = [
            # setuptools 11.3 deprecated support for the require parameter to
            # load(), and introduced the new resolve() method instead.
            # This can be removed if/when we can assume setuptools>=11.3. At
            # some point we may wish to add a warning, to push people along,
            # but at present this would result in too many warnings.
            ep.resolve() if hasattr(ep, "resolve") else ep.load(require=False)
            for ep in pkg_resources.iter_entry_points(
                "cryptography.backends"
            )
        ]

    return _available_backends_list
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号