From 25aac791deb20ebf115b9e82e83dd4f8f62d7d31 Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Sun, 28 Feb 2010 19:28:09 -0800 Subject: [PATCH] SmartDict: Make SmartDict an attrdict --- src/python/m5/util/smartdict.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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""" -- 2.30.2