jinja2.py 文件源码

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

项目:deb-python-django-compressor 作者: openstack 项目源码 文件源码
def walk_nodes(self, node, block_name=None, context=None):
        for node in self.get_nodelist(node):
            if (isinstance(node, CallBlock) and
              isinstance(node.call, Call) and
              isinstance(node.call.node, ExtensionAttribute) and
              node.call.node.identifier == self.COMPRESSOR_ID):
                node.call.node.name = '_compress_forced'
                yield node
            else:
                for node in self.walk_nodes(node, block_name=block_name):
                    yield node
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号