MCPcopy
hub / github.com/django/django / rstrip_last_element

Method rstrip_last_element

django/test/html.py:93–99  ·  view source on GitHub ↗
(children)

Source from the content-addressed store, hash-verified

91
92 def finalize(self):
93 def rstrip_last_element(children):
94 if children and isinstance(children[-1], str):
95 children[-1] = children[-1].rstrip()
96 if not children[-1]:
97 children.pop()
98 children = rstrip_last_element(children)
99 return children
100
101 rstrip_last_element(self.children)
102 for i, child in enumerate(self.children):

Callers

nothing calls this directly

Calls 1

popMethod · 0.45

Tested by

no test coverage detected