(self, *a, **kw)
| 697 | |
| 698 | class 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 |