summaryrefslogtreecommitdiffstats
path: root/Lib/encodings/quopri_codec.py
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-09-20 10:33:38 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2001-09-20 10:33:38 (GMT)
commit26e3b681b26c9978c819396e278f43d356d86f9e (patch)
tree7faccd060a50eb825f6a01e1750e71693af552e9 /Lib/encodings/quopri_codec.py
parentefc3a3af3b47223af3f642ca3bb2a7df3ebdc6d1 (diff)
downloadcpython-26e3b681b26c9978c819396e278f43d356d86f9e.zip
cpython-26e3b681b26c9978c819396e278f43d356d86f9e.tar.gz
cpython-26e3b681b26c9978c819396e278f43d356d86f9e.tar.bz2
Patch #462635 by Andrew Kuchling correcting bugs in the new
codecs -- the self argument does matter for Python functions (it does not for C functions which most other codecs use).
Diffstat (limited to 'Lib/encodings/quopri_codec.py')
-rw-r--r--Lib/encodings/quopri_codec.py6
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