Bug 1884540 - Remove six dependency from build/ directory r=ahochheiden

Differential Revision: https://phabricator.services.mozilla.com/D204144
This commit is contained in:
serge-sans-paille 2024-03-13 17:37:16 +00:00
parent 7796133100
commit 602f8fba76
3 changed files with 3 additions and 5 deletions

View File

@ -17,7 +17,6 @@ from mozhttpd import MozHttpd
from mozprofile import FirefoxProfile, Preferences
from mozprofile.permissions import ServerLocations
from mozrunner import CLI, FirefoxRunner
from six import string_types
PORT = 8888
@ -120,7 +119,7 @@ if __name__ == "__main__":
interpolation = {"server": "%s:%d" % httpd.httpd.server_address}
sp3_interpolation = {"server": "%s:%d" % sp3_httpd.httpd.server_address}
for k, v in prefs.items():
if isinstance(v, string_types):
if isinstance(v, str):
v = v.format(**interpolation)
prefs[k] = Preferences.cast(v)

View File

@ -12,6 +12,7 @@ import sys
import tarfile
import time
from contextlib import contextmanager
from queue import Queue
from threading import Event, Thread
import requests
@ -20,7 +21,6 @@ from mozbuild.generated_sources import (
get_s3_region_and_bucket,
)
from requests.packages.urllib3.util.retry import Retry
from six.moves.queue import Queue
# Arbitrary, should probably measure this.
NUM_WORKER_THREADS = 10

View File

@ -45,7 +45,6 @@ def valgrind_test(command_context, suppressions):
from mozprofile.permissions import ServerLocations
from mozrunner import FirefoxRunner
from mozrunner.utils import findInPath
from six import string_types
from valgrind.output_handler import OutputHandler
build_dir = os.path.join(command_context.topsrcdir, "build")
@ -75,7 +74,7 @@ def valgrind_test(command_context, suppressions):
"server": "%s:%d" % httpd.httpd.server_address,
}
for k, v in prefs.items():
if isinstance(v, string_types):
if isinstance(v, str):
v = v.format(**interpolation)
prefs[k] = Preferences.cast(v)