updated repr to include constants
This commit is contained in:
parent
f90db29fd5
commit
321827d682
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue