python/m5/convert.py:
python/m5/smartdict.py:
    follow our naming convention

--HG--
extra : convert_revision : d57a103dfbad1fb6a076bfacdca226c4b1893fb8
This commit is contained in:
Nathan Binkert
2005-03-22 14:51:31 -05:00
parent ac547c6489
commit 48e0b9ed4d
2 changed files with 12 additions and 12 deletions

View File

@@ -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: