From 84f4ce3513ee1e2c79191d13ca5436519ddecf31 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Mon, 22 Feb 2016 15:42:04 +0100 Subject: [PATCH] TreeBaseModel : str has no encode method. --- gramps/gui/views/treemodels/treebasemodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gui/views/treemodels/treebasemodel.py b/gramps/gui/views/treemodels/treebasemodel.py index ebf9966d1..802857e2b 100644 --- a/gramps/gui/views/treemodels/treebasemodel.py +++ b/gramps/gui/views/treemodels/treebasemodel.py @@ -914,7 +914,7 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel, BaseModel): if val is None: return '' elif not isinstance(val, str): - return val.encode('utf-8') + return val.decode('utf-8') else: return val