debug.py 文件源码

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

项目:newsreap 作者: caronc 项目源码 文件源码
def pre_prepare_second_call(**kwargs):
    """
    this function gets called prior to an issued prepare but gets
    called 'after' the first pre_prepare() call identified above

    If you return False here, you will skip the preparation entirely
    """
    logger.info(
        'DEBUG HOOK pre_prep()\n{kwargs}'.format(
            kwargs=pformat(kwargs, indent=4, depth=2),
        )
    )


# Below is an example of how you can tag 1 function to 2 different
# kinds of hooks:
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号