mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-28 05:10:49 +00:00
Bug 1630809 - python3 compatibility for off-cycle partner respins, typo fixes r=aki
Differential Revision: https://phabricator.services.mozilla.com/D87723
This commit is contained in:
parent
d0c3095f77
commit
aaa9dbde9d
@ -195,8 +195,8 @@ def get_repo_params(repo):
|
||||
|
||||
|
||||
def get_partners(manifestRepo, token):
|
||||
""" Given the url to a manifest repository, retieve the default.xml and parse it into a
|
||||
list of parter repos.
|
||||
""" Given the url to a manifest repository, retrieve the default.xml and parse it into a
|
||||
list of partner repos.
|
||||
"""
|
||||
log.debug("Querying for manifest in %s", manifestRepo)
|
||||
owner, repo = get_repo_params(manifestRepo)
|
||||
@ -335,9 +335,8 @@ def get_partner_config_by_kind(config, kind):
|
||||
# if we're only interested in a subset of partners we remove the rest
|
||||
if partner_subset:
|
||||
# TODO - should be fatal to have an unknown partner in partner_subset
|
||||
for partner in kind_config.keys():
|
||||
if partner not in partner_subset:
|
||||
del(kind_config[partner])
|
||||
for partner in [p for p in kind_config.keys() if p not in partner_subset]:
|
||||
del(kind_config[partner])
|
||||
|
||||
return kind_config
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user