7025: issue with python3 and unicode string

svn: r22986
This commit is contained in:
Doug Blank 2013-09-01 11:07:40 +00:00
parent 7eb11077c8
commit 6f7cdb8fd2

View File

@ -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: