Initial commit of OpenSPARC T2 design and verification files.
[OpenSPARC-T2-DV] / tools / src / nas,5.n2.os.2 / lib / python / lib / python2.4 / encodings / utf_7.py
CommitLineData
86530b38
AT
1""" 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)