(self, input)
| 419 | return decoded |
| 420 | |
| 421 | def ensure_decoded(self, input): |
| 422 | # type: (Union[str, bytes]) -> str |
| 423 | if isinstance(input, str): |
| 424 | return input |
| 425 | return self.lax_decode(input) |
| 426 | |
| 427 | def lax_decode(self, input): |
| 428 | # type: (bytes) -> str |