MCPcopy Create free account
hub / github.com/EasyIME/PIME / _File

Class _File

python/python3/tornado/template.py:517–532  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515
516
517class _File(_Node):
518 def __init__(self, template: Template, body: "_ChunkList") -> None:
519 self.template = template
520 self.body = body
521 self.line = 0
522
523 def generate(self, writer: "_CodeWriter") -> None:
524 writer.write_line("def _tt_execute():", self.line)
525 with writer.indent():
526 writer.write_line("_tt_buffer = []", self.line)
527 writer.write_line("_tt_append = _tt_buffer.append", self.line)
528 self.body.generate(writer)
529 writer.write_line("return _tt_utf8('').join(_tt_buffer)", self.line)
530
531 def each_child(self) -> Iterable["_Node"]:
532 return (self.body,)
533
534
535class _ChunkList(_Node):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected