0001 """ Python 'utf-16-le' Codec 0002 0003 0004 Written by Marc-Andre Lemburg (mal@lemburg.com). 0005 0006 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. 0007 0008 """ 0009 import codecs 0010 0011 ### Codec APIs 0012 0013 encode = codecs.utf_16_le_encode 0014 0015 def decode(input, errors='strict'): 0016 return codecs.utf_16_le_decode(input, errors, True) 0017 0018 class StreamWriter(codecs.StreamWriter): 0019 encode = codecs.utf_16_le_encode 0020 0021 class StreamReader(codecs.StreamReader): 0022 decode = codecs.utf_16_le_decode 0023 0024 0025 ### encodings module API 0026 0027 def getregentry(): 0028 0029 return (encode,decode,StreamReader,StreamWriter) 0030
Generated by PyXR 0.9.4