reloader.py 文件源码

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

项目:celery-monitor 作者: jimmy201602 项目源码 文件源码
def enable(blacklist=None):
    """Enable global module dependency tracking.
    A blacklist can be specified to exclude specific modules (and their import
    hierachies) from the reloading process.  The blacklist can be any iterable
    listing the fully-qualified names of modules that should be ignored.  Note
    that blacklisted modules will still appear in the dependency graph; they
    will just not be reloaded.
    """
    global _blacklist
    builtins.__import__ = _import
    if blacklist is not None:
        _blacklist = frozenset(blacklist)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号