Replace dict.has_key(x) with x in dict for performance gain

svn: r10874
This commit is contained in:
Gerald Britton
2008-07-17 18:10:32 +00:00
parent a6a264d1ce
commit 882199f1c2
80 changed files with 188 additions and 188 deletions

View File

@@ -1089,7 +1089,7 @@ class RelationshipView(PageView.PersonNavView):
"""
if button_activated(event, _LEFT_BUTTON):
person, handle = pair
if self.collapsed_items.has_key(person.handle):
if person.handle in self.collapsed_items:
if handle in self.collapsed_items[person.handle]:
self.collapsed_items[person.handle].remove(handle)
else: