mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
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:
parent
56346a0425
commit
e0d3bfd380
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user