nvd.py 文件源码

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

项目:vulnix 作者: flyingcircusio 项目源码 文件源码
def __exit__(self, exc_type, exc_value, exc_tb):
        if exc_type is None:
            transaction.commit()
            meta = self._root['meta']
            if self.has_updates:
                meta.unpacked += 1
                if meta.unpacked > 25:
                    logger.debug('Packing database')
                    self._db.pack()
                    meta.unpacked = 0
                transaction.commit()
        else:
            transaction.abort()
        self._connection.close()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号