blob: 4a0f4c13e4d1479ae2cb5ca657706ade8173fe51 [file] [log] [blame]
Guido van Rossum0229bf62000-03-10 23:17:24 +00001""" Python 'unicode-internal' Codec
2
3
4Written by Marc-Andre Lemburg (mal@lemburg.com).
5
6(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
7
8"""
9import codecs
10
11### Codec APIs
12
13class Codec(codecs.Codec):
14
15 # Note: Binding these as C functions will result in the class not
16 # converting them to methods. This is intended.
17 encode = codecs.unicode_internal_encode
18 decode = codecs.unicode_internal_decode
19
20class StreamWriter(Codec,codecs.StreamWriter):
21 pass
22
23class StreamReader(Codec,codecs.StreamReader):
24 pass
25
26### encodings module API
27
28def getregentry():
29
30 return (Codec.encode,Codec.decode,StreamReader,StreamWriter)