summaryrefslogtreecommitdiff
path: root/Lib/encodings/iso8859_4.py
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2001-05-16 09:41:45 +0000
committerMarc-André Lemburg <mal@egenix.com>2001-05-16 09:41:45 +0000
commita022398f49499e657b3a3ead258fba8316312062 (patch)
tree3ad97d3d9a945701bc2917187e0df906caee303a /Lib/encodings/iso8859_4.py
parent7a13cb4887d60f47493bc8a043523b30104d0554 (diff)
downloadcpython-a022398f49499e657b3a3ead258fba8316312062.tar.gz
Moved the encoding map building logic from the individual mapping
codec files to codecs.py and added logic so that multi mappings in the decoding maps now result in mappings to None (undefined mapping) in the encoding maps.
Diffstat (limited to 'Lib/encodings/iso8859_4.py')
-rw-r--r--Lib/encodings/iso8859_4.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/encodings/iso8859_4.py b/Lib/encodings/iso8859_4.py
index 30d6ca6805..91db12613b 100644
--- a/Lib/encodings/iso8859_4.py
+++ b/Lib/encodings/iso8859_4.py
@@ -91,6 +91,4 @@ decoding_map.update({
### Encoding Map
-encoding_map = {}
-for k,v in decoding_map.items():
- encoding_map[v] = k
+encoding_map = codecs.make_encoding_map(decoding_map)