From 5dc84c83a959294441aef2b7bd8a83640de0ad27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Wed, 7 May 2014 17:15:26 +0200 Subject: [PATCH] 7649: [Unit test] gramps type, encoding and to_struct(); specific to python2 --- gramps/gen/lib/grampstype.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/gen/lib/grampstype.py b/gramps/gen/lib/grampstype.py index badfb091a..576c8d007 100644 --- a/gramps/gen/lib/grampstype.py +++ b/gramps/gen/lib/grampstype.py @@ -37,7 +37,7 @@ from __future__ import unicode_literals #------------------------------------------------------------------------- from ..const import GRAMPS_LOCALE as glocale _ = glocale.translation.gettext -from ..constfunc import STRTYPE +from ..constfunc import STRTYPE, cuni _UNKNOWN = _('Unknown') @@ -235,7 +235,7 @@ class GrampsType(GrampsTypeC): """ return {"_class": self.__class__.__name__, "value": self.__value, - "string": str(self)} + "string": cuni(self)} @classmethod def from_struct(cls, struct):