Lines Matching refs:codecs
9 import codecs
13 class Codec(codecs.Codec):
17 encode = codecs.ascii_encode
18 decode = codecs.ascii_decode
20 class IncrementalEncoder(codecs.IncrementalEncoder):
22 return codecs.ascii_encode(input, self.errors)[0]
24 class IncrementalDecoder(codecs.IncrementalDecoder):
26 return codecs.ascii_decode(input, self.errors)[0]
28 class StreamWriter(Codec,codecs.StreamWriter):
31 class StreamReader(Codec,codecs.StreamReader):
36 encode = codecs.ascii_decode
37 decode = codecs.ascii_encode
42 return codecs.CodecInfo(