This commit was manufactured by cvs2svn to create tag 'r221c2'.
[python/dscho.git] / Lib / encodings / utf_16_be.py
blob2fd28dab6236df592eddb2135e62cbe5b8aec2b2
1 """ Python 'utf-16-be' Codec
4 Written by Marc-Andre Lemburg (mal@lemburg.com).
6 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
8 """
9 import codecs
11 ### Codec APIs
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.utf_16_be_encode
18 decode = codecs.utf_16_be_decode
20 class StreamWriter(Codec,codecs.StreamWriter):
21 pass
23 class StreamReader(Codec,codecs.StreamReader):
24 pass
26 ### encodings module API
28 def getregentry():
30 return (Codec.encode,Codec.decode,StreamReader,StreamWriter)