MCPcopy Create free account
hub / github.com/webpy/webpy / __init__

Method __init__

web/template.py:699–708  ·  view source on GitHub ↗
(self, *a, **kw)

Source from the content-addressed store, hash-verified

697
698class DefNode(BlockNode):
699 def __init__(self, *a, **kw):
700 BlockNode.__init__(self, *a, **kw)
701
702 code = CodeNode("", "")
703 code.code = "self = TemplateResult(); extend_ = self.extend\n"
704 self.suite.sections.insert(0, code)
705
706 code = CodeNode("", "")
707 code.code = "return self\n"
708 self.suite.sections.append(code)
709
710 def emit(self, indent, text_indent=""):
711 text_indent = self.begin_indent + text_indent

Callers

nothing calls this directly

Calls 4

CodeNodeClass · 0.85
insertMethod · 0.80
appendMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected