Bug 1677738 - Don't encode MOZ_UPDATE_CHANNEL in utf-8 on python 3. r=releng-reviewers,aki

Otherwise, Windows builds with `update_channel` defined fail with
`TypeError: environment can only contain strings`.

Differential Revision: https://phabricator.services.mozilla.com/D97389
This commit is contained in:
Mike Hommey 2020-11-18 03:38:50 +00:00
parent 56346a0425
commit e0d3bfd380

View File

@ -673,7 +673,7 @@ items from that key's value."
# explicitly
if c.get("update_channel"):
update_channel = c["update_channel"]
if isinstance(update_channel, six.text_type):
if six.PY2 and isinstance(update_channel, six.text_type):
update_channel = update_channel.encode("utf-8")
env["MOZ_UPDATE_CHANNEL"] = update_channel
else: # let's just give the generic channel based on branch