Files for 2.1b1 distribution.
[python/dscho.git] / Lib / encodings / utf_16_le.py
blobfea912275d6575e101dcf9d4e50174a1e5e479f4
1 """ Python 'utf-16-le' 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_le_encode
18 decode = codecs.utf_16_le_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)