(input, errors='strict')
| 15 | return (g.getvalue(), len(input)) |
| 16 | |
| 17 | def quopri_decode(input, errors='strict'): |
| 18 | assert errors == 'strict' |
| 19 | f = BytesIO(input) |
| 20 | g = BytesIO() |
| 21 | quopri.decode(f, g) |
| 22 | return (g.getvalue(), len(input)) |
| 23 | |
| 24 | class Codec(codecs.Codec): |
| 25 | def encode(self, input, errors='strict'): |