0001 """ Python 'mbcs' Codec for Windows 0002 0003 0004 Cloned by Mark Hammond (mhammond@skippinet.com.au) from ascii.py, 0005 which was written by Marc-Andre Lemburg (mal@lemburg.com). 0006 0007 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. 0008 0009 """ 0010 import codecs 0011 0012 ### Codec APIs 0013 0014 class Codec(codecs.Codec): 0015 0016 # Note: Binding these as C functions will result in the class not 0017 # converting them to methods. This is intended. 0018 encode = codecs.mbcs_encode 0019 decode = codecs.mbcs_decode 0020 0021 class StreamWriter(Codec,codecs.StreamWriter): 0022 pass 0023 0024 class StreamReader(Codec,codecs.StreamReader): 0025 pass 0026 0027 class StreamConverter(StreamWriter,StreamReader): 0028 0029 encode = codecs.mbcs_decode 0030 decode = codecs.mbcs_encode 0031 0032 ### encodings module API 0033 0034 def getregentry(): 0035 0036 return (Codec.encode,Codec.decode,StreamReader,StreamWriter) 0037
Generated by PyXR 0.9.4