summaryrefslogtreecommitdiff
path: root/python/m5/smartdict.py
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2005-03-22 15:34:08 -0500
committerKevin Lim <ktlim@umich.edu>2005-03-22 15:34:08 -0500
commit2ec918362ee1235cf0d36fb7aac3e3f4ce2d4ddc (patch)
tree33a71bd50ed74ce2127de696c69ee88c9b9c5d1c /python/m5/smartdict.py
parentcfa4221e19459d2179ba5601cf71a7a53753a3b1 (diff)
parent48e0b9ed4dd6f69cc41003d20bf755eeaf6fb633 (diff)
downloadgem5-2ec918362ee1235cf0d36fb7aac3e3f4ce2d4ddc.tar.xz
Merge ktlim@zizzer.eecs.umich.edu:/bk/m5
into zamp.eecs.umich.edu:/z/ktlim2/m5 --HG-- extra : convert_revision : 0c750652cc2b59946160994d53c921cb021ceef4
Diffstat (limited to 'python/m5/smartdict.py')
-rw-r--r--python/m5/smartdict.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/m5/smartdict.py b/python/m5/smartdict.py
index 1ba5d8410..0dbcc50b0 100644
--- a/python/m5/smartdict.py
+++ b/python/m5/smartdict.py
@@ -20,13 +20,13 @@ class SmartDict(dict):
class Proxy(str):
def __int__(self):
- return int(to_integer(str(self)))
+ return int(toInteger(str(self)))
def __long__(self):
- return long(to_integer(str(self)))
+ return long(toInteger(str(self)))
def __float__(self):
- return float(to_integer(str(self)))
+ return float(toInteger(str(self)))
def __nonzero__(self):
- return to_bool(str(self))
+ return toBool(str(self))
def convert(self, other):
t = type(other)
if t == bool: