Utilities/ClassBrowsers/ClbrBaseClasses.py

changeset 12
1d8dd9706f46
parent 0
de9c2efb9d02
child 13
1af94a91f439
equal deleted inserted replaced
11:b0996e4a289e 12:1d8dd9706f46
69 """ 69 """
70 Protected method to add information about global variables. 70 Protected method to add information about global variables.
71 71
72 @param attr Attribute object to be added (Attribute) 72 @param attr Attribute object to be added (Attribute)
73 """ 73 """
74 if not self.globals.has_key(attr.name): 74 if attr.name not in self.globals:
75 self.globals[attr.name] = attr 75 self.globals[attr.name] = attr
76 76
77 def _getglobal(self, name): 77 def _getglobal(self, name):
78 """ 78 """
79 Protected method to retrieve a global variable by name. 79 Protected method to retrieve a global variable by name.
90 """ 90 """
91 Protected method to add information about attributes. 91 Protected method to add information about attributes.
92 92
93 @param attr Attribute object to be added (Attribute) 93 @param attr Attribute object to be added (Attribute)
94 """ 94 """
95 if not self.attributes.has_key(attr.name): 95 if attr.name not in self.attributes:
96 self.attributes[attr.name] = attr 96 self.attributes[attr.name] = attr
97 97
98 def _getattribute(self, name): 98 def _getattribute(self, name):
99 """ 99 """
100 Protected method to retrieve an attribute by name. 100 Protected method to retrieve an attribute by name.

eric ide

mercurial