[svn r45647] use repr() rather than direct return
--HG-- branch : trunk
This commit is contained in:
parent
5318f7b145
commit
a7a95973eb
|
@ -9,7 +9,7 @@ class Outcome:
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
if self.msg:
|
if self.msg:
|
||||||
return self.msg
|
return repr(self.msg)
|
||||||
return "<%s instance>" %(self.__class__.__name__,)
|
return "<%s instance>" %(self.__class__.__name__,)
|
||||||
__str__ = __repr__
|
__str__ = __repr__
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue