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

Class LineNode

web/template.py:613–625  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

611
612
613class LineNode:
614 def __init__(self, nodes):
615 self.nodes = nodes
616
617 def emit(self, indent, text_indent="", name=""):
618 text = [node.emit("") for node in self.nodes]
619 if text_indent:
620 text = [repr(text_indent)] + text
621
622 return indent + "extend_([%s])\n" % ", ".join(text)
623
624 def __repr__(self):
625 return "<line: %s>" % repr(self.nodes)
626
627
628INDENT = " " # 4 spaces

Callers 1

readlineMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected