Lines Matching refs:codecs
12 import codecs
16 class Codec(codecs.Codec):
19 return codecs.charmap_encode(input,errors,encoding_table)
22 return codecs.charmap_decode(input,errors,decoding_table)
24 class IncrementalEncoder(codecs.IncrementalEncoder):
26 return codecs.charmap_encode(input,self.errors,encoding_table)[0]
28 class IncrementalDecoder(codecs.IncrementalDecoder):
30 return codecs.charmap_decode(input,self.errors,decoding_table)[0]
32 class StreamWriter(Codec,codecs.StreamWriter):
35 class StreamReader(Codec,codecs.StreamReader):
41 return codecs.CodecInfo(
314 encoding_table=codecs.charmap_build(decoding_table)