aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-04-10 21:03:33 +0200
committerGitHub <noreply@github.com>2023-04-10 21:03:33 +0200
commitd579bd91b8e82606907dd789f13f6ecaee6a9b18 (patch)
tree3dc7a8736130191a0487f3558ba9fd98f9904b5e /python/servo/command_base.py
parentf28f68eb251be132f237318a05d4e8bc98db69ce (diff)
parente9942bddb0dd3ae67403e3ca486bea2e0f4ce954 (diff)
downloadservo-d579bd91b8e82606907dd789f13f6ecaee6a9b18.tar.gz
servo-d579bd91b8e82606907dd789f13f6ecaee6a9b18.zip
Auto merge of #29608 - mrobinson:six.moves.urllib, r=mukilan
Replace usage of six.moves.urllib with urllib Also organize some of the imports. Now that Servo only uses Python 3, this module is unnecessary. This is part of the gradual migration to using only Python 3. <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because they do not change behavior. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py29
1 files changed, 15 insertions, 14 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 7dafcd8c5db..d51e3f6bc8c 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -9,35 +9,36 @@
from __future__ import print_function
-from errno import ENOENT as NO_SUCH_FILE_OR_DIRECTORY
-from glob import glob
-import shutil
+import contextlib
+import distro
+import functools
import gzip
import itertools
+import json
import locale
import os
-from os import path
import platform
-import distro
import re
-import contextlib
-import subprocess
-from subprocess import PIPE
+import shutil
import six
+import subprocess
import sys
import tarfile
+import urllib
import zipfile
-import functools
+
+from errno import ENOENT as NO_SUCH_FILE_OR_DIRECTORY
+from glob import glob
+from os import path
+from subprocess import PIPE
+
+import toml
+
from xml.etree.ElementTree import XML
from servo.util import download_file
-import six.moves.urllib as urllib
from .bootstrap import check_gstreamer_lib
-
from mach.decorators import CommandArgument
from mach.registrar import Registrar
-import toml
-import json
-
from servo.packages import WINDOWS_MSVC as msvc_deps
from servo.util import host_triple