From 9ab97eb8d80d4f1d5852ea30ee64dbffc32766e1 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 16 Mar 2022 15:52:34 -0400 Subject: [PATCH] LP1922975 Build scripts python3 minor fixes Signed-off-by: Bill Erickson --- build/i18n/scripts/dojo_resource.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build/i18n/scripts/dojo_resource.py b/build/i18n/scripts/dojo_resource.py index 75af7004ba..d272db22f5 100755 --- a/build/i18n/scripts/dojo_resource.py +++ b/build/i18n/scripts/dojo_resource.py @@ -36,6 +36,7 @@ import sys import simplejson import os.path import os +from builtins import str class DojoResource (basel10n.BaseL10N): """ @@ -65,14 +66,14 @@ class DojoResource (basel10n.BaseL10N): print("Reading Dojo resource file %s" % (source)) raise - for key, value in bundle.iteritems(): + for key, value in bundle.items(): if value in msgids: - msgids[unicode(value)].occurrences.append((os.path.basename(source), str(key))) + msgids[str(value)].occurrences.append((os.path.basename(source), str(key))) else: poe = polib.POEntry() poe.occurrences = [(os.path.basename(source), str(key))] - poe.msgid = unicode(value) - msgids[unicode(value)] = poe + poe.msgid = str(value) + msgids[str(value)] = poe # Now add the POEntries to our POFile for poe in msgids.values(): -- 2.11.0