Propagate exceptions from shutdown() if raiseExceptions is not set.
[python.git] / Lib / encodings / mbcs.py
blobc79f47c3afcc0874bff0d71a282593c6a6489e31
1 """ Python 'mbcs' Codec for Windows
4 Cloned by Mark Hammond (mhammond@skippinet.com.au) from ascii.py,
5 which was written by Marc-Andre Lemburg (mal@lemburg.com).
7 (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
9 """
10 import codecs
12 ### Codec APIs
14 class Codec(codecs.Codec):
16 # Note: Binding these as C functions will result in the class not
17 # converting them to methods. This is intended.
18 encode = codecs.mbcs_encode
19 decode = codecs.mbcs_decode
21 class StreamWriter(Codec,codecs.StreamWriter):
22 pass
24 class StreamReader(Codec,codecs.StreamReader):
25 pass
27 class StreamConverter(StreamWriter,StreamReader):
29 encode = codecs.mbcs_decode
30 decode = codecs.mbcs_encode
32 ### encodings module API
34 def getregentry():
36 return (Codec.encode,Codec.decode,StreamReader,StreamWriter)