diff options
Diffstat (limited to 'Lib/plat-mac/ic.py')
-rw-r--r-- | Lib/plat-mac/ic.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/plat-mac/ic.py b/Lib/plat-mac/ic.py index 6575336..490cbf7 100644 --- a/Lib/plat-mac/ic.py +++ b/Lib/plat-mac/ic.py @@ -138,7 +138,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 @@ -151,7 +151,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 @@ -176,9 +176,6 @@ class IC: self.ic.ICEnd() return rv - def has_key(self, key): - return self.__contains__(key) - def __contains__(self, key): try: dummy = self.ic.ICFindPrefHandle(key, self.h) |