]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/latin_1.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / encodings / latin_1.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/latin_1.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/encodings/latin_1.py
deleted file mode 100644 (file)
index a6193bc..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-""" Python 'latin-1' Codec\r
-\r
-\r
-Written by Marc-Andre Lemburg (mal@lemburg.com).\r
-\r
-(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.\r
-\r
-"""\r
-import codecs\r
-\r
-### Codec APIs\r
-\r
-class Codec(codecs.Codec):\r
-\r
-    # Note: Binding these as C functions will result in the class not\r
-    # converting them to methods. This is intended.\r
-    encode = codecs.latin_1_encode\r
-    decode = codecs.latin_1_decode\r
-\r
-class IncrementalEncoder(codecs.IncrementalEncoder):\r
-    def encode(self, input, final=False):\r
-        return codecs.latin_1_encode(input,self.errors)[0]\r
-\r
-class IncrementalDecoder(codecs.IncrementalDecoder):\r
-    def decode(self, input, final=False):\r
-        return codecs.latin_1_decode(input,self.errors)[0]\r
-\r
-class StreamWriter(Codec,codecs.StreamWriter):\r
-    pass\r
-\r
-class StreamReader(Codec,codecs.StreamReader):\r
-    pass\r
-\r
-class StreamConverter(StreamWriter,StreamReader):\r
-\r
-    encode = codecs.latin_1_decode\r
-    decode = codecs.latin_1_encode\r
-\r
-### encodings module API\r
-\r
-def getregentry():\r
-    return codecs.CodecInfo(\r
-        name='iso8859-1',\r
-        encode=Codec.encode,\r
-        decode=Codec.decode,\r
-        incrementalencoder=IncrementalEncoder,\r
-        incrementaldecoder=IncrementalDecoder,\r
-        streamreader=StreamReader,\r
-        streamwriter=StreamWriter,\r
-    )\r