summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/ic.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2010-04-03 18:17:54 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2010-04-03 18:17:54 (GMT)
commita3a505076efc19ec23669370778c5fa22d030ffa (patch)
tree4d91e9339c5d09bb17147162538fe1835e47e432 /Lib/plat-mac/ic.py
parent5f516edd77d00cae24d287285e455833d44097a7 (diff)
downloadcpython-a3a505076efc19ec23669370778c5fa22d030ffa.zip
cpython-a3a505076efc19ec23669370778c5fa22d030ffa.tar.gz
cpython-a3a505076efc19ec23669370778c5fa22d030ffa.tar.bz2
Silence DeprecationWarnings from uses of has_key and <> in plat-mac.
Diffstat (limited to 'Lib/plat-mac/ic.py')
-rw-r--r--Lib/plat-mac/ic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/ic.py b/Lib/plat-mac/ic.py
index 8337f2d..321eba8 100644
--- a/Lib/plat-mac/ic.py
+++ b/Lib/plat-mac/ic.py
@@ -141,7 +141,7 @@ def _decode(data, key):
key2 = key[:string.index(key, '\245')+1]
else:
key2 = key
- if _decoder_table.has_key(key2):
+ if key2 in _decoder_table:
decoder = _decoder_table[key2][0]
else:
decoder = _decode_default
@@ -154,7 +154,7 @@ def _code(data, key):
key2 = key[:string.index(key, '\245')+1]
else:
key2 = key
- if _decoder_table.has_key(key2):
+ if key2 in _decoder_table:
coder = _decoder_table[key2][1]
else:
coder = _code_default