No bug: [taskgrah] Fix mach taskgraph full --tasks <...> on python 3; r=Callek DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D85895
This commit is contained in:
Tom Prince
2020-08-04 17:16:15 +00:00
parent 218b032bc6
commit 2b91d423d4

View File

@@ -12,6 +12,7 @@ import json
import logging
import os
from six import text_type
import six
import sys
import traceback
import re
@@ -389,7 +390,7 @@ class MachCommands(MachCommandBase):
task = taskgraph.tasks[key]
if regexprogram.match(task.label):
filteredtasks[key] = task
for depname, dep in named_links_dict[key].iteritems():
for depname, dep in six.iteritems(named_links_dict[key]):
if regexprogram.match(dep):
filterededges.add((key, dep, depname))
filtered_taskgraph = TaskGraph(filteredtasks, Graph(set(filteredtasks), filterededges))