From 2fd9dc19cd3ee50341aa6327afa9a098addfda5c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Tue, 9 Nov 2010 10:45:02 -0800 Subject: [PATCH] SimObject: Use "self" when calling the clear_child method. --- src/python/m5/SimObject.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/m5/SimObject.py b/src/python/m5/SimObject.py index 471647776..61af57fb8 100644 --- a/src/python/m5/SimObject.py +++ b/src/python/m5/SimObject.py @@ -666,7 +666,7 @@ class SimObject(object): "add_child('%s'): child '%s' already has parent '%s'" % \ (name, child._name, child._parent) if self._children.has_key(name): - clear_child(name) + self.clear_child(name) child.set_parent(self, name) self._children[name] = child -- 2.30.2