(self, chunk, base)
| 1169 | self.stopped = False |
| 1170 | |
| 1171 | def eat(self, chunk, base): |
| 1172 | pos = self.eat_meth(chunk, base) |
| 1173 | if pos is None: return |
| 1174 | if self.eat_meth != self._eat_headers: |
| 1175 | if self.stopped: |
| 1176 | raise StopMarkupException() |
| 1177 | base = pos |
| 1178 | self.eat_meth = self._eat_headers |
| 1179 | return self.eat(chunk, base) |
| 1180 | # found headers section end, reset eater |
| 1181 | self.eat_meth = self._eat_first_crlf_or_last_hyphens |
| 1182 | return pos |
| 1183 | |
| 1184 | def _eat_last_hyphen(self, chunk, base): |
| 1185 | chunk_start = chunk[base: base + 2] |
nothing calls this directly
no test coverage detected