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

Method is_unallowed_attr

web/template.py:1424–1427  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

1422
1423 # helpers
1424 def is_unallowed_attr(self, name):
1425 return (
1426 name.startswith("_") or name.startswith("func_") or name.startswith("im_")
1427 )
1428
1429 def get_node_attr(self, node):
1430 return "attr" in node._fields and node.attr or None

Callers 1

visit_AttributeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected