blob: 441a7f70295e0989380782a715534c4c548739ca [file] [log] [blame]
Marc-André Lemburg35b0cb02001-09-20 12:56:14 +00001""" Python 'utf-7' Codec
2
3Written by Brian Quinlan (brian@sweetapp.com).
4"""
5import codecs
6
7### Codec APIs
8
9class Codec(codecs.Codec):
10
11 # Note: Binding these as C functions will result in the class not
12 # converting them to methods. This is intended.
13 encode = codecs.utf_7_encode
14 decode = codecs.utf_7_decode
15
16class StreamWriter(Codec,codecs.StreamWriter):
17 pass
18
19class StreamReader(Codec,codecs.StreamReader):
20 pass
21
22### encodings module API
23
24def getregentry():
25
26 return (Codec.encode,Codec.decode,StreamReader,StreamWriter)
27