MCPcopy
hub / github.com/django/django / handle_data

Method handle_data

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

Source from the content-addressed store, hash-verified

133 self.tags.popleft()
134
135 def handle_data(self, data):
136 data, output = self.process(data)
137 data_len = len(data)
138 if self.remaining < data_len:
139 self.remaining = 0
140 self.output.append(add_truncation_text(output, self.replacement))
141 raise self.TruncationCompleted
142 self.remaining -= data_len
143 self.output.append(output)
144
145 def feed(self, data):
146 try:

Callers

nothing calls this directly

Calls 3

add_truncation_textFunction · 0.85
processMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected