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

Method read_keyword

web/template.py:245–247  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

243 return TextNode(text[:index]), text[index:]
244
245 def read_keyword(self, text):
246 line, text = splitline(text)
247 return StatementNode(line.strip() + "\n"), text
248
249 def read_expr(self, text, escape=True): # noqa: C901, PLR0915
250 """Reads a python expression from the text and returns the expression and remaining text.

Callers 1

read_sectionMethod · 0.95

Calls 2

splitlineFunction · 0.85
StatementNodeClass · 0.85

Tested by

no test coverage detected