All objects should return self on serialize

svn: r19687
This commit is contained in:
Doug Blank 2012-05-28 22:49:09 +00:00
parent dcddea249d
commit bb2b773e6d

View File

@ -287,6 +287,7 @@ class StyledText(object):
stt = StyledTextTag()
stt.unserialize(tag)
self._tags.append(stt)
return self
def get_tags(self):
"""Return the list of formatting tags.
@ -315,4 +316,4 @@ if __name__ == '__main__':
C = C.replace('X', StyledText('_'))
A = A + B
print A
print A