Lines Matching refs:codecs
5 import codecs
9 class Codec(codecs.Codec):
12 return codecs.charmap_encode(input,errors,encoding_table)
15 return codecs.charmap_decode(input,errors,decoding_table)
17 class IncrementalEncoder(codecs.IncrementalEncoder):
19 return codecs.charmap_encode(input,self.errors,encoding_table)[0]
21 class IncrementalDecoder(codecs.IncrementalDecoder):
23 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
25 class StreamWriter(Codec,codecs.StreamWriter):
28 class StreamReader(Codec,codecs.StreamReader):
34 return codecs.CodecInfo(
307 encoding_table=codecs.charmap_build(decoding_table)