From bb2b773e6dcb45d0d00b315961c19fbd0a1fe200 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Mon, 28 May 2012 22:49:09 +0000 Subject: [PATCH] All objects should return self on serialize svn: r19687 --- src/gen/lib/styledtext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gen/lib/styledtext.py b/src/gen/lib/styledtext.py index ea922687f..35a42d956 100644 --- a/src/gen/lib/styledtext.py +++ b/src/gen/lib/styledtext.py @@ -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 \ No newline at end of file + print A