mirror of
https://github.com/python/cpython.git
synced 2025-07-30 06:34:15 +00:00
Fix passing errors to the encoder and decoder functions.
This commit is contained in:
parent
aabc5f6f2f
commit
6b6e2bb8b1
2 changed files with 4 additions and 4 deletions
|
@ -102,11 +102,11 @@ class Codec(codecs.Codec):
|
|||
|
||||
class IncrementalEncoder(codecs.IncrementalEncoder):
|
||||
def encode(self, input, final=False):
|
||||
return uu_encode(input, errors)[0]
|
||||
return uu_encode(input, self.errors)[0]
|
||||
|
||||
class IncrementalDecoder(codecs.IncrementalDecoder):
|
||||
def decode(self, input, final=False):
|
||||
return uu_decode(input, errors)[0]
|
||||
return uu_decode(input, self.errors)[0]
|
||||
|
||||
class StreamWriter(Codec,codecs.StreamWriter):
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue