All objects should return self on serialize
svn: r19687
This commit is contained in:
@ -287,6 +287,7 @@ class StyledText(object):
|
|||||||
stt = StyledTextTag()
|
stt = StyledTextTag()
|
||||||
stt.unserialize(tag)
|
stt.unserialize(tag)
|
||||||
self._tags.append(stt)
|
self._tags.append(stt)
|
||||||
|
return self
|
||||||
|
|
||||||
def get_tags(self):
|
def get_tags(self):
|
||||||
"""Return the list of formatting tags.
|
"""Return the list of formatting tags.
|
||||||
@ -315,4 +316,4 @@ if __name__ == '__main__':
|
|||||||
C = C.replace('X', StyledText('_'))
|
C = C.replace('X', StyledText('_'))
|
||||||
A = A + B
|
A = A + B
|
||||||
|
|
||||||
print A
|
print A
|
||||||
|
Reference in New Issue
Block a user