forked from openlp/openlp
removed contains method
This commit is contained in:
parent
37b7de22a5
commit
60c1a4e9f4
@ -161,12 +161,6 @@ class CategoryList(object):
|
|||||||
return category
|
return category
|
||||||
raise KeyError(u'Category "%s" does not exist.' % key)
|
raise KeyError(u'Category "%s" does not exist.' % key)
|
||||||
|
|
||||||
def __contains__(self, item):
|
|
||||||
"""
|
|
||||||
Implement the __contains__() method to make this class like a dictionary
|
|
||||||
"""
|
|
||||||
return self.has_key(item)
|
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
"""
|
"""
|
||||||
Implement the __len__() method to make this class like a dictionary
|
Implement the __len__() method to make this class like a dictionary
|
||||||
|
Loading…
Reference in New Issue
Block a user