1 """ Python 'ascii' Codec
4 Written by Marc-Andre Lemburg (mal@lemburg.com).
6 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
13 class Codec(codecs
.Codec
):
15 # Note: Binding these as C functions will result in the class not
16 # converting them to methods. This is intended.
17 encode
= codecs
.ascii_encode
18 decode
= codecs
.ascii_decode
20 class StreamWriter(Codec
,codecs
.StreamWriter
):
23 class StreamReader(Codec
,codecs
.StreamReader
):
26 class StreamConverter(StreamWriter
,StreamReader
):
28 encode
= codecs
.ascii_decode
29 decode
= codecs
.ascii_encode
31 ### encodings module API
35 return (Codec
.encode
,Codec
.decode
,StreamReader
,StreamWriter
)