updated repr to include constants

This commit is contained in:
Ken Conley 2009-10-02 22:58:01 +00:00
parent f90db29fd5
commit 321827d682
1 changed files with 4 additions and 1 deletions

View File

@ -233,7 +233,10 @@ class MsgSpec(object):
return not self.__eq__(other) return not self.__eq__(other)
def __repr__(self): def __repr__(self):
return "MsgSpec[%s, %s]"%(repr(self.types), repr(self.names)) if self.constants:
return "MsgSpec[%s, %s, %s]"%(repr(self.constants), repr(self.types), repr(self.names))
else:
return "MsgSpec[%s, %s]"%(repr(self.types), repr(self.names))
def __str__(self): def __str__(self):
return _strify_spec(self) return _strify_spec(self)