summaryrefslogtreecommitdiff
path: root/python/m5/smartdict.py
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-03-22 14:51:31 -0500
committerNathan Binkert <binkertn@umich.edu>2005-03-22 14:51:31 -0500
commit48e0b9ed4dd6f69cc41003d20bf755eeaf6fb633 (patch)
tree74a65e57c103c50fe5fd285d23cb13d87b2663d0 /python/m5/smartdict.py
parentac547c64892f9b93817787cd3dcf5d63ba6e5521 (diff)
downloadgem5-48e0b9ed4dd6f69cc41003d20bf755eeaf6fb633.tar.xz
style
python/m5/convert.py: python/m5/smartdict.py: follow our naming convention --HG-- extra : convert_revision : d57a103dfbad1fb6a076bfacdca226c4b1893fb8
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: