Issue 4393, str/unicode problem. Now same code as in trunk.
svn: r16218
This commit is contained in:
parent
3affb0a3fd
commit
d5ccbb092d
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user