Commit c7554e28 authored by Jack Jansen's avatar Jack Jansen

Added a __contains__ method.

parent b417936d
......@@ -176,6 +176,9 @@ class IC:
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment