Commit 84cba41e authored by Edwin Takahashi's avatar Edwin Takahashi
Browse files

Bug 1597616 - make mozharness::mozilla::i10n python3 compatible r=aki

Changes:

Mostly formatting.

Differential Revision: https://phabricator.services.mozilla.com/D53891

--HG--
extra : moz-landing-system : lando
parent 97b7b732
......@@ -49,7 +49,9 @@ class LocalesMixin(object):
# Command line or config
if not locales and c.get("locales", []):
locales = c["locales"]
self.debug("Using locales from config/CLI: %s" % ", ".join(locales))
self.debug(
"Using locales from config/CLI: %s" %
", ".join(locales))
# parse locale:revision if set
if locales:
......@@ -111,7 +113,10 @@ class LocalesMixin(object):
locales.append(locale)
else:
locales = self.read_from_file(locales_file).split()
self.info("self.l10n_revisions: %s" % pprint.pformat(self.l10n_revisions))
self.info(
"self.l10n_revisions: %s" %
pprint.pformat(
self.l10n_revisions))
self.info("locales: %s" % locales)
return locales
......@@ -142,7 +147,7 @@ class LocalesMixin(object):
dirs['abs_locales_dir'] = os.path.join(dirs['abs_objdir'],
c['locales_dir'])
for key in dirs.keys():
for key in list(dirs.keys()):
if key not in abs_dirs:
abs_dirs[key] = dirs[key]
self.abs_dirs = abs_dirs
......
......@@ -12,12 +12,12 @@ This should be a mostly generic multilocale build script.
import os
import sys
sys.path.insert(1, os.path.dirname(os.path.dirname(sys.path[0])))
from mozharness.base.errors import MakefileErrorList
from mozharness.base.vcs.vcsbase import MercurialScript
from mozharness.mozilla.l10n.locales import LocalesMixin
sys.path.insert(1, os.path.dirname(os.path.dirname(sys.path[0])))
# MultiLocaleBuild {{{1
class MultiLocaleBuild(LocalesMixin, MercurialScript):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment