From 6f7cdb8fd29b30450c5c08dfa5b1d8ef06cec3e0 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Sun, 1 Sep 2013 11:07:40 +0000 Subject: [PATCH] 7025: issue with python3 and unicode string svn: r22986 --- gramps/gui/views/treemodels/treebasemodel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gui/views/treemodels/treebasemodel.py b/gramps/gui/views/treemodels/treebasemodel.py index 6a748eb7b..2d68d1859 100644 --- a/gramps/gui/views/treemodels/treebasemodel.py +++ b/gramps/gui/views/treemodels/treebasemodel.py @@ -460,9 +460,9 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel): if search[1]: # we have search[1] = (index, text_unicode, inversion) col, text, inv = search[1] - func = lambda x: self._get_value(x, col, secondary=False) or u"" + func = lambda x: self._get_value(x, col, secondary=False) or "" if self.has_secondary: - func2 = lambda x: self._get_value(x, col, secondary=True) or u"" + func2 = lambda x: self._get_value(x, col, secondary=True) or "" if search[2]: self.search = ExactSearchFilter(func, text, inv) if self.has_secondary: