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

Method include

python/python3/tornado/template.py:754–765  ·  view source on GitHub ↗
(self, template: Template, line: int)

Source from the content-addressed store, hash-verified

752 return Indenter()
753
754 def include(self, template: Template, line: int) -> "ContextManager":
755 self.include_stack.append((self.current_template, line))
756 self.current_template = template
757
758 class IncludeTemplate(object):
759 def __enter__(_) -> "_CodeWriter":
760 return self
761
762 def __exit__(_, *args: Any) -> None:
763 self.current_template = self.include_stack.pop()[0]
764
765 return IncludeTemplate()
766
767 def write_line(
768 self, line: str, line_number: int, indent: Optional[int] = None

Callers 2

generateMethod · 0.80
generateMethod · 0.80

Calls 2

IncludeTemplateClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected