From c6b356244b6a66531824045fa3e03806a734d4b0 Mon Sep 17 00:00:00 2001 From: James Graham Date: Thu, 9 Nov 2023 10:46:26 +0000 Subject: [PATCH] Bug 1863886 - Remove usage of six from wpt mach_commands.py, r=whimboo Differential Revision: https://phabricator.services.mozilla.com/D193175 --- testing/web-platform/mach_commands.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/testing/web-platform/mach_commands.py b/testing/web-platform/mach_commands.py index 26734a2d4275..d8abfe9bd118 100644 --- a/testing/web-platform/mach_commands.py +++ b/testing/web-platform/mach_commands.py @@ -11,7 +11,6 @@ from mach.decorators import Command from mach_commands_base import WebPlatformTestsRunner, create_parser_wpt from mozbuild.base import MachCommandConditions as conditions from mozbuild.base import MozbuildObject -from six import iteritems here = os.path.abspath(os.path.dirname(__file__)) INTEROP_REQUIREMENTS_PATH = os.path.join(here, "interop_requirements.txt") @@ -275,7 +274,7 @@ class WebPlatformTestsServeRunner(MozbuildObject): def get_route_builder(*args, **kwargs): route_builder = serve.get_route_builder(*args, **kwargs) - for url_base, paths in iteritems(test_paths): + for url_base, paths in test_paths.items(): if url_base != "/": route_builder.add_mount_point(url_base, paths.tests_path) @@ -363,7 +362,7 @@ class WebPlatformTestsTestPathsRunner(MozbuildObject): wptcommandline.config.read(config_path) ) results = {} - for url_base, paths in iteritems(test_paths): + for url_base, paths in test_paths.items(): if "manifest_path" not in paths: paths["manifest_path"] = os.path.join( paths["metadata_path"], "MANIFEST.json"