2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-16 08:13:56 +00:00

Updating the ApplicationSpecificInformation attribute

This change adds some utility methods, including equality operators
and string methods, to the ApplicationSpecificInformation attribute.
Unit tests covering the changes are included.
This commit is contained in:
Peter Hamilton
2016-11-27 11:17:54 -05:00
parent 194412a17f
commit a55310368f
3 changed files with 204 additions and 1 deletions

View File

@@ -839,7 +839,7 @@ class TextString(Base):
return "{0}(value={1})".format(type(self).__name__, repr(self.value))
def __str__(self):
return "{0}".format(repr(self.value))
return "{0}".format(str(self.value))
def __eq__(self, other):
if isinstance(other, TextString):