(self, modes: str)
| 311 | max_decode_links = 5 |
| 312 | |
| 313 | def __init__(self, modes: str) -> None: |
| 314 | encodings = [m.strip() for m in modes.split(",")] |
| 315 | if len(encodings) > self.max_decode_links: |
| 316 | raise DecodeError( |
| 317 | "Too many content encodings in the chain: " |
| 318 | f"{len(encodings)} > {self.max_decode_links}" |
| 319 | ) |
| 320 | self._decoders = [_get_decoder(e) for e in encodings] |
| 321 | |
| 322 | def flush(self) -> bytes: |
| 323 | return self._decoders[0].flush() |
nothing calls this directly
no test coverage detected