diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2010-11-09 10:45:02 -0800 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2010-11-09 10:45:02 -0800 |
commit | 2fd9dc19cd3ee50341aa6327afa9a098addfda5c (patch) | |
tree | 3bba1499792551602fad01c8be09f37bf76c2096 /src/python/m5 | |
parent | 388124492ee0c846b545d47c0e9e6a2603c6f92d (diff) | |
download | gem5-2fd9dc19cd3ee50341aa6327afa9a098addfda5c.tar.xz |
SimObject: Use "self" when calling the clear_child method.
Diffstat (limited to 'src/python/m5')
-rw-r--r-- | src/python/m5/SimObject.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |