diff --git a/Mac/Lib/ic.py b/Mac/Lib/ic.py index abe5b69c598..3c0272cf1de 100644 --- a/Mac/Lib/ic.py +++ b/Mac/Lib/ic.py @@ -176,6 +176,9 @@ def keys(self): return rv def has_key(self, key): + return self.__contains__(key) + + def __contains__(self, key): try: dummy = self.ic.ICFindPrefHandle(key, self.h) except icglue.error: