]> git.proxmox.com Git - mirror_edk2.git/blobdiff - AppPkg/Applications/Python/Python-2.7.2/Lib/test/testcodec.py
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.2 / Lib / test / testcodec.py
diff --git a/AppPkg/Applications/Python/Python-2.7.2/Lib/test/testcodec.py b/AppPkg/Applications/Python/Python-2.7.2/Lib/test/testcodec.py
deleted file mode 100644 (file)
index dc1340e..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-""" Test Codecs (used by test_charmapcodec)\r
-\r
-Written by Marc-Andre Lemburg (mal@lemburg.com).\r
-\r
-(c) Copyright 2000 Guido van Rossum.\r
-\r
-"""#"\r
-import codecs\r
-\r
-### Codec APIs\r
-\r
-class Codec(codecs.Codec):\r
-\r
-    def encode(self,input,errors='strict'):\r
-\r
-        return codecs.charmap_encode(input,errors,encoding_map)\r
-\r
-    def decode(self,input,errors='strict'):\r
-\r
-        return codecs.charmap_decode(input,errors,decoding_map)\r
-\r
-class StreamWriter(Codec,codecs.StreamWriter):\r
-    pass\r
-\r
-class StreamReader(Codec,codecs.StreamReader):\r
-    pass\r
-\r
-### encodings module API\r
-\r
-def getregentry():\r
-\r
-    return (Codec().encode,Codec().decode,StreamReader,StreamWriter)\r
-\r
-### Decoding Map\r
-\r
-decoding_map = codecs.make_identity_dict(range(256))\r
-decoding_map.update({\r
-        0x78: u"abc", # 1-n decoding mapping\r
-        "abc": 0x0078,# 1-n encoding mapping\r
-        0x01: None,   # decoding mapping to <undefined>\r
-        0x79: u"",    # decoding mapping to <remove character>\r
-})\r
-\r
-### Encoding Map\r
-\r
-encoding_map = {}\r
-for k,v in decoding_map.items():\r
-    encoding_map[v] = k\r