Some unnecessary unicode conversion cleanup after fix of issue 4078.
svn: r15609
This commit is contained in:
parent
51abf16ddb
commit
51a9075613
@ -421,11 +421,9 @@ class RemoveUnused(Tool.Tool, ManagedWindow.ManagedWindow, UpdateCallback):
|
|||||||
text = note.get()
|
text = note.get()
|
||||||
|
|
||||||
# convert whitespace to a single space
|
# convert whitespace to a single space
|
||||||
text = " ".join(text.split())
|
text = u" ".join(text.split())
|
||||||
|
|
||||||
# if the note is too long, truncate it
|
# if the note is too long, truncate it
|
||||||
# but first set type of text to unicode, otherwise the sliceing might go wrong.
|
|
||||||
text = unicode(text)
|
|
||||||
if len(text) > 80:
|
if len(text) > 80:
|
||||||
text = text[:80] + "..."
|
text = text[:80] + "..."
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user