Utilities/ClassBrowsers/ClbrBaseClasses.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
--- a/Utilities/ClassBrowsers/ClbrBaseClasses.py	Fri Jan 01 16:11:36 2010 +0000
+++ b/Utilities/ClassBrowsers/ClbrBaseClasses.py	Sat Jan 02 15:11:35 2010 +0000
@@ -71,7 +71,7 @@
         
         @param attr Attribute object to be added (Attribute)
         """
-        if not self.globals.has_key(attr.name):
+        if attr.name not in self.globals:
             self.globals[attr.name] = attr
         
     def _getglobal(self, name):
@@ -92,7 +92,7 @@
         
         @param attr Attribute object to be added (Attribute)
         """
-        if not self.attributes.has_key(attr.name):
+        if attr.name not in self.attributes:
             self.attributes[attr.name] = attr
         
     def _getattribute(self, name):

eric ide

mercurial