summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/base64_codec.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/encodings/base64_codec.py')
-rw-r--r--Lib/encodings/base64_codec.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/encodings/base64_codec.py b/Lib/encodings/base64_codec.py
index ce21b1a..bae9542 100644
--- a/Lib/encodings/base64_codec.py
+++ b/Lib/encodings/base64_codec.py
@@ -44,8 +44,10 @@ def base64_decode(input,errors='strict'):
class Codec(codecs.Codec):
- encode = base64_encode
- decode = base64_decode
+ def encode(self, input,errors='strict'):
+ return base64_encode(input,errors)
+ def decode(self, input,errors='strict'):
+ return base64_decode(input,errors)
class StreamWriter(Codec,codecs.StreamWriter):
pass