add implementation of __repr__ for MessageBase
@@ -132,6 +132,9 @@ class MessageBase(Mapping, MessageValidator):
def __str__(self):
return "{}{}".format(self.typename, dict(self.items()))
+ def __repr__(self):
+ return self.__str__()
+
def __eq__(self, other):
if not issubclass(other.__class__, self.__class__):
return False
