Lines Matching refs:codecs
13 import codecs
17 class Codec(codecs.Codec):
21 encode = codecs.charmap_encode
22 decode = codecs.charmap_decode
24 class IncrementalEncoder(codecs.IncrementalEncoder):
26 codecs.IncrementalEncoder.__init__(self, errors)
30 return codecs.charmap_encode(input, self.errors, self.mapping)[0]
32 class IncrementalDecoder(codecs.IncrementalDecoder):
34 codecs.IncrementalDecoder.__init__(self, errors)
38 return codecs.charmap_decode(input, self.errors, self.mapping)[0]
40 class StreamWriter(Codec,codecs.StreamWriter):
43 codecs.StreamWriter.__init__(self,stream,errors)
49 class StreamReader(Codec,codecs.StreamReader):
52 codecs.StreamReader.__init__(self,stream,errors)
61 return codecs.CodecInfo(