MCPcopy
hub / github.com/django/django / feed

Method feed

django/utils/text.py:145–154  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

143 self.output.append(output)
144
145 def feed(self, data):
146 try:
147 super().feed(data)
148 except self.TruncationCompleted:
149 self.output.extend([f"</{tag}>" for tag in self.tags])
150 self.tags.clear()
151 self.reset()
152 else:
153 # No data was handled.
154 self.reset()
155
156
157class TruncateCharsHTMLParser(TruncateHTMLParser):

Callers 5

charsMethod · 0.45
wordsMethod · 0.45
_strip_onceFunction · 0.45
get_image_dimensionsFunction · 0.45
parse_htmlFunction · 0.45

Calls 3

extendMethod · 0.80
clearMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected