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).
This commit is contained in:
Marc-André Lemburg 2001-09-20 10:33:38 +00:00
parent efc3a3af3b
commit 26e3b681b2
5 changed files with 21 additions and 11 deletions

View file

@ -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