Fix of issue 4078, note.get() unicode now.

svn: r15599
This commit is contained in:
Peter Landgren 2010-06-28 07:45:05 +00:00
parent 88c1389251
commit 8900ce7f6d

View File

@ -133,10 +133,10 @@ class Note(BasicPrimaryObject):
"""Return the text string associated with the note. """Return the text string associated with the note.
:returns: The *clear* text of the note contents. :returns: The *clear* text of the note contents.
:rtype: str :rtype: unicode
""" """
return str(self.text) return unicode(self.text)
def set_styledtext(self, text): def set_styledtext(self, text):
"""Set the text associated with the note to the passed string. """Set the text associated with the note to the passed string.