From b03ce385148868149c0a5d292a4e1f9aea908189 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Rapinat?= Date: Wed, 7 May 2014 20:43:54 +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 ac7bf216b..6c9d067f8 100644 --- a/gramps/gen/lib/grampstype.py +++ b/gramps/gen/lib/grampstype.py @@ -39,7 +39,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') @@ -233,7 +233,7 @@ class GrampsType(GrampsTypeC): :rtype: dict """ return {"value": self.__value, - "string": str(self)} + "string": cuni(self)} def unserialize(self, data): """Convert a serialized tuple of data to an object."""