Home | History | Annotate | Download | only in platform

Lines Matching refs:child_name

259   def Set(self, parent, child_name, new_child):
260 """In parent, replace child_name's old definition with new_child.
268 This method supports the case where child_name is a staticmethod or a
272 parent: The context in which the attribute child_name is to be changed.
273 child_name: The name of the attribute to change.
276 old_child = getattr(parent, child_name)
278 old_attribute = parent.__dict__.get(child_name)
282 self.cache.append((parent, old_child, child_name))
283 setattr(parent, child_name, new_child)
296 for (parent, old_child, child_name) in reversed(self.cache):
297 setattr(parent, child_name, old_child)