diff options
Diffstat (limited to 'Lib/encodings/uu_codec.py')
-rw-r--r-- | Lib/encodings/uu_codec.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Lib/encodings/uu_codec.py b/Lib/encodings/uu_codec.py index 82e799c..6ef8369 100644 --- a/Lib/encodings/uu_codec.py +++ b/Lib/encodings/uu_codec.py @@ -94,9 +94,11 @@ def uu_decode(input,errors='strict'): class Codec(codecs.Codec): - encode = uu_encode - decode = uu_decode - + def encode(self,input,errors='strict'): + return uu_encode(input,errors) + def decode(self,input,errors='strict'): + return uu_decode(input,errors) + class StreamWriter(Codec,codecs.StreamWriter): pass |