attrdict: correct delattr
authorNathan Binkert <nate@binkert.org>
Thu, 2 Jul 2009 23:48:22 +0000 (16:48 -0700)
committerNathan Binkert <nate@binkert.org>
Thu, 2 Jul 2009 23:48:22 +0000 (16:48 -0700)
src/python/m5/util/attrdict.py

index 56f67217b688c5bab445aa5b985be7a9c691e011..0b30258b9c23e938a3f1a54caaf68adaf64cac70 100644 (file)
@@ -43,7 +43,7 @@ class attrdict(dict):
     def __delattr__(self, attr):
         if attr in self:
             return self.__delitem__(attr)
-        return super(attrdict, self).__delattr__(attr, value)
+        return super(attrdict, self).__delattr__(attr)
 
 class multiattrdict(attrdict):
     """Wrap attrdict so that nested attribute accesses automatically create