From c7554e28ee526113281c3fd252c543d063194a60 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Fri, 26 Jul 2002 11:32:03 +0000 Subject: [PATCH] Added a __contains__ method. --- Mac/Lib/ic.py | 3 +++ 1 file changed, 3 insertions(+) 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: