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

Method get_node_lineno

web/template.py:1432–1433  ·  view source on GitHub ↗
(self, node)

Source from the content-addressed store, hash-verified

1430 return "attr" in node._fields and node.attr or None
1431
1432 def get_node_lineno(self, node):
1433 return (node.lineno) and node.lineno or 0
1434
1435
1436class TemplateResult(MutableMapping):

Callers 3

fail_nodeMethod · 0.95
fail_attributeMethod · 0.95
fail_nameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected