diff options
Diffstat (limited to 'Lib/encodings/quopri_codec.py')
-rw-r--r-- | Lib/encodings/quopri_codec.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/encodings/quopri_codec.py b/Lib/encodings/quopri_codec.py index 42074f4..d98b5ed 100644 --- a/Lib/encodings/quopri_codec.py +++ b/Lib/encodings/quopri_codec.py @@ -41,8 +41,10 @@ def quopri_decode(input, errors='strict'): class Codec(codecs.Codec): - encode = quopri_encode - decode = quopri_decode + def encode(self, input,errors='strict'): + return quopri_encode(input,errors) + def decode(self, input,errors='strict'): + return quopri_decode(input,errors) class StreamWriter(Codec, codecs.StreamWriter): pass |