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