Lines Matching refs:errors
25 def __init__(self, errors='strict', mapping=None):
26 codecs.IncrementalEncoder.__init__(self, errors)
30 return codecs.charmap_encode(input, self.errors, self.mapping)[0]
33 def __init__(self, errors='strict', mapping=None):
34 codecs.IncrementalDecoder.__init__(self, errors)
38 return codecs.charmap_decode(input, self.errors, self.mapping)[0]
42 def __init__(self,stream,errors='strict',mapping=None):
43 codecs.StreamWriter.__init__(self,stream,errors)
46 def encode(self,input,errors='strict'):
47 return Codec.encode(input,errors,self.mapping)
51 def __init__(self,stream,errors='strict',mapping=None):
52 codecs.StreamReader.__init__(self,stream,errors)
55 def decode(self,input,errors='strict'):
56 return Codec.decode(input,errors,self.mapping)