log.py 文件源码

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

项目:TCP-IP 作者: JackZ0 项目源码 文件源码
def flush(self, force=False):  # pylint: disable=arguments-differ
        """Flush the buffer if force=True.

        If force=False, this call is a noop.

        :param bool force: True if the buffer should be flushed.

        """
        # This method allows flush() calls in logging.shutdown to be a
        # noop so we can control when this handler is flushed.
        if force:
            if sys.version_info < (2, 7):  # pragma: no cover
                logging.handlers.MemoryHandler.flush(self)
            else:
                super(MemoryHandler, self).flush()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号