TreeBaseModel : str has no encode method.
This commit is contained in:
parent
863a325e1d
commit
84f4ce3513
@ -914,7 +914,7 @@ class TreeBaseModel(GObject.GObject, Gtk.TreeModel, BaseModel):
|
|||||||
if val is None:
|
if val is None:
|
||||||
return ''
|
return ''
|
||||||
elif not isinstance(val, str):
|
elif not isinstance(val, str):
|
||||||
return val.encode('utf-8')
|
return val.decode('utf-8')
|
||||||
else:
|
else:
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user