TreeBaseModel : str has no encode method.

This commit is contained in:
SNoiraud 2016-02-22 15:42:04 +01:00
parent 863a325e1d
commit 84f4ce3513

View File

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