diff options
Diffstat (limited to 'Lib/codecs.py')
-rw-r--r-- | Lib/codecs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/codecs.py b/Lib/codecs.py index 293d5b7741..9178db9c3e 100644 --- a/Lib/codecs.py +++ b/Lib/codecs.py @@ -611,7 +611,7 @@ def make_encoding_map(decoding_map): """ m = {} for k,v in decoding_map.items(): - if not m.has_key(v): + if not v in m: m[v] = k else: m[v] = None |