Exemplo n.º 1
0
 def parse(self, parser):
     return nodes.Output([self.call_method('_dump', [
         nodes.EnvironmentAttribute('sandboxed'),
         self.attr('ext_attr'),
         nodes.ImportedName(__name__ + '.importable_object'),
         nodes.ContextReference()
     ])]).set_lineno(next(parser.stream).lineno)
Exemplo n.º 2
0
 def parse(self, parser):
     return nodes.Output([
         self.call_method(
             "_dump",
             [
                 nodes.EnvironmentAttribute("sandboxed"),
                 self.attr("ext_attr"),
                 nodes.ImportedName(__name__ + ".importable_object"),
                 self.context_reference_node_cls(),
             ],
         )
     ]).set_lineno(next(parser.stream).lineno)