From 1fe37cae6f9d9078b809e9a469683738df1d56ed Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Mon, 7 Jan 2013 09:17:16 +0000 Subject: [PATCH] fix error of revision 20699 svn: r21021 --- gramps/gen/utils/trans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/gen/utils/trans.py b/gramps/gen/utils/trans.py index 0371e317b..64b8de71f 100644 --- a/gramps/gen/utils/trans.py +++ b/gramps/gen/utils/trans.py @@ -261,7 +261,7 @@ def get_addon_translator(filename=None, domain="addon", languages=None): path = os.path.dirname(os.path.abspath(filename)) # Check if path is of type str. Do import and conversion if so. # The import cannot be done at the top as that will conflict with the translation system. - if not isinstance(path, UNITYPE) == str: + if not isinstance(path, UNITYPE): from .file import get_unicode_path_from_env_var path = get_unicode_path_from_env_var(path) if languages: