summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-02-28 19:28:09 -0800
committerNathan Binkert <nate@binkert.org>2010-02-28 19:28:09 -0800
commit25aac791deb20ebf115b9e82e83dd4f8f62d7d31 (patch)
tree333b1ed862be4cee63b2802610ccef218f1536ae /src/python/m5
parentebdd004eb28b684fd8f41f71954127ecb347704c (diff)
downloadgem5-25aac791deb20ebf115b9e82e83dd4f8f62d7d31.tar.xz
SmartDict: Make SmartDict an attrdict
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/util/smartdict.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/python/m5/util/smartdict.py b/src/python/m5/util/smartdict.py
index d85dbd517..61e48ddba 100644
--- a/src/python/m5/util/smartdict.py
+++ b/src/python/m5/util/smartdict.py
@@ -43,6 +43,7 @@
from convert import *
+from attrdict import attrdict
class Variable(str):
"""Intelligent proxy class for SmartDict. Variable will use the
@@ -109,7 +110,7 @@ class UndefinedVariable(object):
def __nonzero__(self):
return False
-class SmartDict(dict):
+class SmartDict(attrdict):
"""Dictionary class that holds strings, but intelligently converts
those strings to other types depending on their usage"""