summaryrefslogtreecommitdiff
path: root/src/python/m5/util/attrdict.py
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-14 23:24:46 -0700
committerNathan Binkert <nate@binkert.org>2010-06-14 23:24:46 -0700
commit420402c0a314f515ff1e84d6c6da4892e006c92e (patch)
treea7b8f7aa79d191baa704e083b106aceddd7dd78b /src/python/m5/util/attrdict.py
parent5fc7adcba05dd3c732758d18f03db090ac17fbb9 (diff)
downloadgem5-420402c0a314f515ff1e84d6c6da4892e006c92e.tar.xz
util: clean up attrdict and import multiattrdict into m5.util
Diffstat (limited to 'src/python/m5/util/attrdict.py')
-rw-r--r--src/python/m5/util/attrdict.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/m5/util/attrdict.py b/src/python/m5/util/attrdict.py
index 8f7d59698..cb83e9e24 100644
--- a/src/python/m5/util/attrdict.py
+++ b/src/python/m5/util/attrdict.py
@@ -58,6 +58,9 @@ class multiattrdict(attrdict):
try:
return super(multiattrdict, self).__getattr__(attr)
except AttributeError:
+ if attr.startswith('_'):
+ raise
+
d = multiattrdict()
setattr(self, attr, d)
return d