Adds a contains method to SIDData to support in statement.

This commit is contained in:
Eddie Hebert
2013-01-23 17:17:35 -05:00
parent 87f99331e8
commit a49bd4af4b
+3
View File
@@ -102,5 +102,8 @@ class SIDData(object):
def __len__(self):
return len(self.__dict__)
def __contains__(self, name):
return name in self.__dict__
def __repr__(self):
return "SIDData({0})".format(self.__dict__)