From 51a9075613ed5eba96c0a2a7d8f1bfea2f7f95e6 Mon Sep 17 00:00:00 2001 From: Peter Landgren Date: Wed, 30 Jun 2010 07:37:55 +0000 Subject: [PATCH] Some unnecessary unicode conversion cleanup after fix of issue 4078. svn: r15609 --- src/plugins/tool/RemoveUnused.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/tool/RemoveUnused.py b/src/plugins/tool/RemoveUnused.py index 4713bf633..2c65008bf 100644 --- a/src/plugins/tool/RemoveUnused.py +++ b/src/plugins/tool/RemoveUnused.py @@ -421,11 +421,9 @@ class RemoveUnused(Tool.Tool, ManagedWindow.ManagedWindow, UpdateCallback): text = note.get() # convert whitespace to a single space - text = " ".join(text.split()) + text = u" ".join(text.split()) # 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: text = text[:80] + "..."