diff --git a/testing/condprofile/condprof/android.py b/testing/condprofile/condprof/android.py index 09521ddd8e35..0c39e7030064 100644 --- a/testing/condprofile/condprof/android.py +++ b/testing/condprofile/condprof/android.py @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Drives an android device. """ +from __future__ import absolute_import import os import posixpath import tempfile diff --git a/testing/condprofile/condprof/changelog.py b/testing/condprofile/condprof/changelog.py index 1f7b7fa31c0f..39e3c8e1944e 100644 --- a/testing/condprofile/condprof/changelog.py +++ b/testing/condprofile/condprof/changelog.py @@ -7,6 +7,7 @@ """ Maintains a unique file that lists all artifacts operations. """ +from __future__ import absolute_import import os import json from datetime import datetime diff --git a/testing/condprofile/condprof/check_install.py b/testing/condprofile/condprof/check_install.py index 676addc498f8..b6174fc3beea 100644 --- a/testing/condprofile/condprof/check_install.py +++ b/testing/condprofile/condprof/check_install.py @@ -6,6 +6,7 @@ This module tries to make sure we have all dependencies installed on all our environments. """ +from __future__ import absolute_import import sys import os import subprocess diff --git a/testing/condprofile/condprof/creator.py b/testing/condprofile/condprof/creator.py index 124ee4f2d270..f43d407d8317 100644 --- a/testing/condprofile/condprof/creator.py +++ b/testing/condprofile/condprof/creator.py @@ -23,6 +23,7 @@ When Firefox changes its version, profiles from the previous version should work as expected. Each profile tarball comes with a metadata file that keep track of the Firefox version that was used and the profile age. """ +from __future__ import absolute_import import os from arsenic import get_session diff --git a/testing/condprofile/condprof/desktop.py b/testing/condprofile/condprof/desktop.py index 3daa6ed603f4..b82f38ee3770 100644 --- a/testing/condprofile/condprof/desktop.py +++ b/testing/condprofile/condprof/desktop.py @@ -1,6 +1,7 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import contextlib diff --git a/testing/condprofile/condprof/helpers.py b/testing/condprofile/condprof/helpers.py index befe9e033187..1769b2b36570 100644 --- a/testing/condprofile/condprof/helpers.py +++ b/testing/condprofile/condprof/helpers.py @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Helpers to build scenarii """ +from __future__ import absolute_import from condprof.util import logger _SUPPORTED_MOBILE_BROWSERS = "fenix", "gecko", "firefox" diff --git a/testing/condprofile/condprof/main.py b/testing/condprofile/condprof/main.py index 156f119ce267..16a848683e4c 100644 --- a/testing/condprofile/condprof/main.py +++ b/testing/condprofile/condprof/main.py @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Script that launches profiles creation. """ +from __future__ import absolute_import import os import argparse import sys diff --git a/testing/condprofile/condprof/metadata.py b/testing/condprofile/condprof/metadata.py index fb38fe223528..ee13bd84e266 100644 --- a/testing/condprofile/condprof/metadata.py +++ b/testing/condprofile/condprof/metadata.py @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Manages a metadata file. """ +from __future__ import absolute_import import os import datetime from collections.abc import MutableMapping diff --git a/testing/condprofile/condprof/patch.py b/testing/condprofile/condprof/patch.py index 35e4c978b5fb..90a7f922d4ab 100644 --- a/testing/condprofile/condprof/patch.py +++ b/testing/condprofile/condprof/patch.py @@ -5,6 +5,7 @@ # patch for https://bugzilla.mozilla.org/show_bug.cgi?id=1655869 # see https://github.com/HDE/arsenic/issues/85 +from __future__ import absolute_import from arsenic.connection import * diff --git a/testing/condprofile/condprof/runner.py b/testing/condprofile/condprof/runner.py index 8eee547d969e..c26911f44db7 100644 --- a/testing/condprofile/condprof/runner.py +++ b/testing/condprofile/condprof/runner.py @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. """ Script that launches profiles creation. """ +from __future__ import absolute_import import os import shutil import asyncio diff --git a/testing/condprofile/condprof/scenarii/full.py b/testing/condprofile/condprof/scenarii/full.py index 42259456bf1b..77ddc2f98dab 100644 --- a/testing/condprofile/condprof/scenarii/full.py +++ b/testing/condprofile/condprof/scenarii/full.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import random import os import asyncio diff --git a/testing/condprofile/condprof/scenarii/settled.py b/testing/condprofile/condprof/scenarii/settled.py index eb54f4638b3f..434d3acf65f0 100644 --- a/testing/condprofile/condprof/scenarii/settled.py +++ b/testing/condprofile/condprof/scenarii/settled.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import asyncio diff --git a/testing/condprofile/condprof/scenarii/settled2.py b/testing/condprofile/condprof/scenarii/settled2.py index 0bc828c4c3ab..5ef9ceb7e9cd 100644 --- a/testing/condprofile/condprof/scenarii/settled2.py +++ b/testing/condprofile/condprof/scenarii/settled2.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import asyncio diff --git a/testing/condprofile/condprof/tests/fakegeckodriver.py b/testing/condprofile/condprof/tests/fakegeckodriver.py index 2802753c257f..35159cb7b779 100755 --- a/testing/condprofile/condprof/tests/fakegeckodriver.py +++ b/testing/condprofile/condprof/tests/fakegeckodriver.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +from __future__ import absolute_import from uuid import uuid4 import json from http.server import BaseHTTPRequestHandler, HTTPServer diff --git a/testing/condprofile/condprof/tests/test_client.py b/testing/condprofile/condprof/tests/test_client.py index 3e40fe41f12e..82aac59d4df2 100644 --- a/testing/condprofile/condprof/tests/test_client.py +++ b/testing/condprofile/condprof/tests/test_client.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import unittest import os import tempfile diff --git a/testing/condprofile/condprof/tests/test_runner.py b/testing/condprofile/condprof/tests/test_runner.py index 2ffb24a9d5f4..70b373d348ab 100644 --- a/testing/condprofile/condprof/tests/test_runner.py +++ b/testing/condprofile/condprof/tests/test_runner.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import unittest import tempfile diff --git a/testing/condprofile/mach_commands.py b/testing/condprofile/mach_commands.py index 5b13135a46a3..df70f1005fae 100644 --- a/testing/condprofile/mach_commands.py +++ b/testing/condprofile/mach_commands.py @@ -1,6 +1,7 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, # You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import logging import sys import os diff --git a/testing/gtest/bench.py b/testing/gtest/bench.py index e6050c39ba89..6b2043b7f099 100755 --- a/testing/gtest/bench.py +++ b/testing/gtest/bench.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -from __future__ import division, print_function +from __future__ import absolute_import, division, print_function import sys import subprocess import json diff --git a/testing/gtest/mach_test_package_commands.py b/testing/gtest/mach_test_package_commands.py index aeb213093ffe..a837f070b644 100644 --- a/testing/gtest/mach_test_package_commands.py +++ b/testing/gtest/mach_test_package_commands.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function, unicode_literals +from __future__ import absolute_import, print_function, unicode_literals import os import sys diff --git a/testing/gtest/remotegtests.py b/testing/gtest/remotegtests.py index d8f75c4436d5..335f71385bbf 100644 --- a/testing/gtest/remotegtests.py +++ b/testing/gtest/remotegtests.py @@ -4,7 +4,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function, with_statement +from __future__ import absolute_import, print_function, with_statement import argparse import datetime diff --git a/testing/gtest/rungtests.py b/testing/gtest/rungtests.py index bc77558fea07..527007924e81 100644 --- a/testing/gtest/rungtests.py +++ b/testing/gtest/rungtests.py @@ -4,7 +4,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function, with_statement +from __future__ import absolute_import, print_function, with_statement import argparse import os diff --git a/testing/mochitest/bisection.py b/testing/mochitest/bisection.py index 17ab5776fccb..6ff676280a3f 100644 --- a/testing/mochitest/bisection.py +++ b/testing/mochitest/bisection.py @@ -1,4 +1,4 @@ -from __future__ import division, print_function +from __future__ import absolute_import, division, print_function import math import mozinfo diff --git a/testing/mochitest/leaks.py b/testing/mochitest/leaks.py index 623faa8f6f09..d94478dd5295 100644 --- a/testing/mochitest/leaks.py +++ b/testing/mochitest/leaks.py @@ -5,7 +5,7 @@ # The content of this file comes orginally from automationutils.py # and *should* be revised. -from __future__ import division +from __future__ import absolute_import, division import re from operator import itemgetter diff --git a/testing/mochitest/mach_test_package_commands.py b/testing/mochitest/mach_test_package_commands.py index dd5a5cab4602..b3bc9b1625e6 100644 --- a/testing/mochitest/mach_test_package_commands.py +++ b/testing/mochitest/mach_test_package_commands.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import unicode_literals +from __future__ import absolute_import, unicode_literals import json import os diff --git a/testing/mochitest/mochitest_options.py b/testing/mochitest/mochitest_options.py index c720172bf06c..6d54997450ea 100644 --- a/testing/mochitest/mochitest_options.py +++ b/testing/mochitest/mochitest_options.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function +from __future__ import absolute_import, print_function from abc import ABCMeta, abstractmethod, abstractproperty from argparse import ArgumentParser, SUPPRESS from distutils.util import strtobool diff --git a/testing/mochitest/pywebsocket3/mod_pywebsocket/request_handler.py b/testing/mochitest/pywebsocket3/mod_pywebsocket/request_handler.py index 5e9c875dc7da..ea583bab3ba3 100644 --- a/testing/mochitest/pywebsocket3/mod_pywebsocket/request_handler.py +++ b/testing/mochitest/pywebsocket3/mod_pywebsocket/request_handler.py @@ -29,6 +29,8 @@ """Request Handler and Request/Connection classes for standalone server. """ +from __future__ import absolute_import + import os from six.moves import CGIHTTPServer diff --git a/testing/mochitest/pywebsocket3/mod_pywebsocket/server_util.py b/testing/mochitest/pywebsocket3/mod_pywebsocket/server_util.py index 8f9e273e9770..48c45fa444fb 100644 --- a/testing/mochitest/pywebsocket3/mod_pywebsocket/server_util.py +++ b/testing/mochitest/pywebsocket3/mod_pywebsocket/server_util.py @@ -28,6 +28,8 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. """Server related utilities.""" +from __future__ import absolute_import + import logging import logging.handlers import threading diff --git a/testing/mochitest/pywebsocket3/mod_pywebsocket/stream.py b/testing/mochitest/pywebsocket3/mod_pywebsocket/stream.py index 17c51b11b423..99095224ccd8 100644 --- a/testing/mochitest/pywebsocket3/mod_pywebsocket/stream.py +++ b/testing/mochitest/pywebsocket3/mod_pywebsocket/stream.py @@ -33,7 +33,7 @@ Specification: http://tools.ietf.org/html/rfc6455 """ -from __future__ import division +from __future__ import absolute_import, division from collections import deque import logging diff --git a/testing/mochitest/pywebsocket_wrapper.py b/testing/mochitest/pywebsocket_wrapper.py index 82f087476d3c..b4e13434253a 100644 --- a/testing/mochitest/pywebsocket_wrapper.py +++ b/testing/mochitest/pywebsocket_wrapper.py @@ -9,6 +9,7 @@ SIGINT. """ +from __future__ import absolute_import import signal import sys diff --git a/testing/mochitest/runjunit.py b/testing/mochitest/runjunit.py index 57cd69f8d7f4..1cf3aa849c98 100644 --- a/testing/mochitest/runjunit.py +++ b/testing/mochitest/runjunit.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function +from __future__ import absolute_import, print_function import argparse import os diff --git a/testing/mochitest/runtests.py b/testing/mochitest/runtests.py index 445241804de9..65db6880d58e 100644 --- a/testing/mochitest/runtests.py +++ b/testing/mochitest/runtests.py @@ -6,7 +6,7 @@ Runs the Mochitest test harness. """ -from __future__ import division, print_function, with_statement +from __future__ import absolute_import, division, print_function, with_statement import os import sys diff --git a/testing/mochitest/runtestsremote.py b/testing/mochitest/runtestsremote.py index edaed2f89ea6..91bc62847863 100644 --- a/testing/mochitest/runtestsremote.py +++ b/testing/mochitest/runtestsremote.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import posixpath import sys diff --git a/testing/mochitest/tests/python/conftest.py b/testing/mochitest/tests/python/conftest.py index 82e42488c210..cf6c1b394159 100644 --- a/testing/mochitest/tests/python/conftest.py +++ b/testing/mochitest/tests/python/conftest.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function, unicode_literals +from __future__ import absolute_import, print_function, unicode_literals import json import os from argparse import Namespace diff --git a/testing/mochitest/tests/python/test_basic_mochitest_plain.py b/testing/mochitest/tests/python/test_basic_mochitest_plain.py index d1725d4f2843..e12438dd5944 100644 --- a/testing/mochitest/tests/python/test_basic_mochitest_plain.py +++ b/testing/mochitest/tests/python/test_basic_mochitest_plain.py @@ -2,6 +2,8 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import + import os from functools import partial diff --git a/testing/mochitest/tests/python/test_build_profile.py b/testing/mochitest/tests/python/test_build_profile.py index ef824b11acef..eafa19cf23df 100644 --- a/testing/mochitest/tests/python/test_build_profile.py +++ b/testing/mochitest/tests/python/test_build_profile.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function, unicode_literals +from __future__ import absolute_import, print_function, unicode_literals import json import os diff --git a/testing/mochitest/tests/python/test_get_active_tests.py b/testing/mochitest/tests/python/test_get_active_tests.py index afe7a4b0fc18..21e63f1959bf 100644 --- a/testing/mochitest/tests/python/test_get_active_tests.py +++ b/testing/mochitest/tests/python/test_get_active_tests.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function, unicode_literals +from __future__ import absolute_import, print_function, unicode_literals import os from argparse import Namespace diff --git a/testing/mozharness/configs/android/android_common.py b/testing/mozharness/configs/android/android_common.py index 953f4ba8bff0..d84282ad580a 100644 --- a/testing/mozharness/configs/android/android_common.py +++ b/testing/mozharness/configs/android/android_common.py @@ -7,6 +7,7 @@ # This configuration should be combined with platform-specific mozharness # configuration such as androidx86_7_0.py, android_hw, or similar. +from __future__ import absolute_import import os diff --git a/testing/mozharness/configs/awsy/linux_config.py b/testing/mozharness/configs/awsy/linux_config.py index 0786dfd28631..325eabb4e929 100644 --- a/testing/mozharness/configs/awsy/linux_config.py +++ b/testing/mozharness/configs/awsy/linux_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os PYTHON = "/usr/bin/env python" diff --git a/testing/mozharness/configs/awsy/macosx_config.py b/testing/mozharness/configs/awsy/macosx_config.py index f765d0e3f934..d17db7d62d22 100644 --- a/testing/mozharness/configs/awsy/macosx_config.py +++ b/testing/mozharness/configs/awsy/macosx_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os PYTHON = "/usr/bin/env python" diff --git a/testing/mozharness/configs/awsy/taskcluster_windows_config.py b/testing/mozharness/configs/awsy/taskcluster_windows_config.py index 2509185f496a..4e588bb877bc 100644 --- a/testing/mozharness/configs/awsy/taskcluster_windows_config.py +++ b/testing/mozharness/configs/awsy/taskcluster_windows_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import sys import mozharness diff --git a/testing/mozharness/configs/builds/releng_base_android_64_builds.py b/testing/mozharness/configs/builds/releng_base_android_64_builds.py index 33ae870d02cf..3461a3e77a3f 100644 --- a/testing/mozharness/configs/builds/releng_base_android_64_builds.py +++ b/testing/mozharness/configs/builds/releng_base_android_64_builds.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_base_linux_32_builds.py b/testing/mozharness/configs/builds/releng_base_linux_32_builds.py index 03c333a5f943..b1c238fe1bdb 100644 --- a/testing/mozharness/configs/builds/releng_base_linux_32_builds.py +++ b/testing/mozharness/configs/builds/releng_base_linux_32_builds.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_base_linux_64_builds.py b/testing/mozharness/configs/builds/releng_base_linux_64_builds.py index 8904c9ca9e56..d8a90f361715 100644 --- a/testing/mozharness/configs/builds/releng_base_linux_64_builds.py +++ b/testing/mozharness/configs/builds/releng_base_linux_64_builds.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_base_mac_64_cross_builds.py b/testing/mozharness/configs/builds/releng_base_mac_64_cross_builds.py index fbbddf1c3dba..3b943911746d 100644 --- a/testing/mozharness/configs/builds/releng_base_mac_64_cross_builds.py +++ b/testing/mozharness/configs/builds/releng_base_mac_64_cross_builds.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_base_windows_32_mingw_builds.py b/testing/mozharness/configs/builds/releng_base_windows_32_mingw_builds.py index 0c1ede64543c..3f4433fc581e 100644 --- a/testing/mozharness/configs/builds/releng_base_windows_32_mingw_builds.py +++ b/testing/mozharness/configs/builds/releng_base_windows_32_mingw_builds.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_base_windows_64_mingw_builds.py b/testing/mozharness/configs/builds/releng_base_windows_64_mingw_builds.py index 3019dec3c9a1..26ab6cfcbc15 100644 --- a/testing/mozharness/configs/builds/releng_base_windows_64_mingw_builds.py +++ b/testing/mozharness/configs/builds/releng_base_windows_64_mingw_builds.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/32_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/32_debug.py index ea0a6d17b0f4..9ee5508d4594 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/32_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/32_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests.py index b9195f619b6d..c33908220f26 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests_debug.py index c05e3a3f44cc..399f5ad7c204 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/32_rusttests_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_add-on-devel.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_add-on-devel.py index ede8363c6aec..419c0f07642f 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_add-on-devel.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_add-on-devel.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan.py index ac024b67bdf3..53c7ccb7e829 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_and_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_and_debug.py index 44d08e02af11..514f8abdea69 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_and_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_and_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_reporter_tc.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_reporter_tc.py index 9bc1010da0f8..d1cf3a0c7bc5 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_reporter_tc.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_reporter_tc.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc.py index d6751ccf4ca8..eea28a0bb897 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc_and_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc_and_debug.py index 12ae638b3a50..617b3a471c9f 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc_and_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_asan_tc_and_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_debug.py index f82294e6465a..74bc6b07125d 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_opt.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_opt.py index f82294e6465a..74bc6b07125d 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_opt.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_code_coverage_opt.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_debug.py index e8ad7d1cc1df..b546ccfcc629 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_asan_tc.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_asan_tc.py index 025e0843c210..1c5e7404d8eb 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_asan_tc.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_asan_tc.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_debug.py index 101b09d63563..89bd1bc69b03 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_tsan_tc.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_tsan_tc.py index 5e5b88074074..22f5f87a2825 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_tsan_tc.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_fuzzing_tsan_tc.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_noopt_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_noopt_debug.py index 518ebed408b8..0422cea052b1 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_noopt_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_noopt_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests.py index 9827e11b3aa4..6b53167f0f99 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests_debug.py index b362d3d09ff5..95cfe4ac8bbd 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_rusttests_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_searchfox_and_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_searchfox_and_debug.py index b962166517bb..e136291be358 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_searchfox_and_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_searchfox_and_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_stat_and_debug.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_stat_and_debug.py index c9a43b16426c..53ec22511c24 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_stat_and_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_stat_and_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_tsan_tc.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_tsan_tc.py index 6a749c8dd566..27fd6beeed04 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_tsan_tc.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_tsan_tc.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_valgrind.py b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_valgrind.py index 60ad7a4ce682..feb6f70c27b9 100644 --- a/testing/mozharness/configs/builds/releng_sub_linux_configs/64_valgrind.py +++ b/testing/mozharness/configs/builds/releng_sub_linux_configs/64_valgrind.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_add-on-devel.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_add-on-devel.py index 4255adb50022..f7d099c5c65f 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_add-on-devel.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_add-on-devel.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_debug.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_debug.py index a94cbb75f78f..19b3efcabc97 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_opt.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_opt.py index 6a5a1cb15aaa..26830f4358ac 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_opt.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_code_coverage_opt.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug.py index 82283ba2fbe6..8b5ec033be98 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug_searchfox.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug_searchfox.py index f73b59db53fe..b8ba33f28e2b 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug_searchfox.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_debug_searchfox.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_asan.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_asan.py index 8f665762f25c..fee50128cedc 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_asan.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_asan.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_debug.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_debug.py index f88bac7001c0..c0c86ce7f4ab 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_fuzzing_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_noopt_debug.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_noopt_debug.py index e3cd50f21807..e134becf9907 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_noopt_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_noopt_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_debug.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_debug.py index 12e7b8458891..db58e9d549e1 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_stat_and_debug.py b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_stat_and_debug.py index 72049b6ce186..e183aa055733 100644 --- a/testing/mozharness/configs/builds/releng_sub_mac_configs/64_stat_and_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_mac_configs/64_stat_and_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_windows_configs/32_add-on-devel.py b/testing/mozharness/configs/builds/releng_sub_windows_configs/32_add-on-devel.py index 86fd6aba5d61..745aee83b095 100644 --- a/testing/mozharness/configs/builds/releng_sub_windows_configs/32_add-on-devel.py +++ b/testing/mozharness/configs/builds/releng_sub_windows_configs/32_add-on-devel.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_windows_configs/32_debug.py b/testing/mozharness/configs/builds/releng_sub_windows_configs/32_debug.py index 8e29f6a9b230..5fc38a4b9586 100644 --- a/testing/mozharness/configs/builds/releng_sub_windows_configs/32_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_windows_configs/32_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_windows_configs/32_stat_and_debug.py b/testing/mozharness/configs/builds/releng_sub_windows_configs/32_stat_and_debug.py index 3f911b6cfa1f..8a385cf7b68c 100644 --- a/testing/mozharness/configs/builds/releng_sub_windows_configs/32_stat_and_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_windows_configs/32_stat_and_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_windows_configs/64_add-on-devel.py b/testing/mozharness/configs/builds/releng_sub_windows_configs/64_add-on-devel.py index 3184fc7783ba..367ca690371e 100644 --- a/testing/mozharness/configs/builds/releng_sub_windows_configs/64_add-on-devel.py +++ b/testing/mozharness/configs/builds/releng_sub_windows_configs/64_add-on-devel.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/releng_sub_windows_configs/64_debug.py b/testing/mozharness/configs/builds/releng_sub_windows_configs/64_debug.py index 9abb5b38ac25..e901417ab4b1 100644 --- a/testing/mozharness/configs/builds/releng_sub_windows_configs/64_debug.py +++ b/testing/mozharness/configs/builds/releng_sub_windows_configs/64_debug.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/taskcluster_base_macosx.py b/testing/mozharness/configs/builds/taskcluster_base_macosx.py index 7831ad17f46c..28c0eeafa16a 100644 --- a/testing/mozharness/configs/builds/taskcluster_base_macosx.py +++ b/testing/mozharness/configs/builds/taskcluster_base_macosx.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/builds/taskcluster_base_windows.py b/testing/mozharness/configs/builds/taskcluster_base_windows.py index 8e5a5bc650d2..0f7186cd4132 100644 --- a/testing/mozharness/configs/builds/taskcluster_base_windows.py +++ b/testing/mozharness/configs/builds/taskcluster_base_windows.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/developer_config.py b/testing/mozharness/configs/developer_config.py index 38092f666485..ad9893febf40 100644 --- a/testing/mozharness/configs/developer_config.py +++ b/testing/mozharness/configs/developer_config.py @@ -14,6 +14,7 @@ Using this config file should be accompanied with using --test-url and --installer-url where appropiate """ +from __future__ import absolute_import import os LOCAL_WORKDIR = os.path.expanduser("~/.mozilla/releng") diff --git a/testing/mozharness/configs/firefox_ui_tests/releng_release.py b/testing/mozharness/configs/firefox_ui_tests/releng_release.py index 9654e5213082..56b452518a5c 100644 --- a/testing/mozharness/configs/firefox_ui_tests/releng_release.py +++ b/testing/mozharness/configs/firefox_ui_tests/releng_release.py @@ -4,6 +4,7 @@ # Default configuration as used by Release Engineering for testing release/beta builds +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/configs/firefox_ui_tests/taskcluster_windows.py b/testing/mozharness/configs/firefox_ui_tests/taskcluster_windows.py index e63944d515b7..318f26e97f7d 100644 --- a/testing/mozharness/configs/firefox_ui_tests/taskcluster_windows.py +++ b/testing/mozharness/configs/firefox_ui_tests/taskcluster_windows.py @@ -4,6 +4,7 @@ # Config file for firefox ui tests run via TaskCluster. +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/configs/l10n_bumper/jamun.py b/testing/mozharness/configs/l10n_bumper/jamun.py index de1a52de1a78..fdc054b51c46 100644 --- a/testing/mozharness/configs/l10n_bumper/jamun.py +++ b/testing/mozharness/configs/l10n_bumper/jamun.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import sys MULTI_REPO = "projects/jamun" diff --git a/testing/mozharness/configs/l10n_bumper/mozilla-beta.py b/testing/mozharness/configs/l10n_bumper/mozilla-beta.py index 4ba7add5de1d..6dd7f6950a21 100644 --- a/testing/mozharness/configs/l10n_bumper/mozilla-beta.py +++ b/testing/mozharness/configs/l10n_bumper/mozilla-beta.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import sys MULTI_REPO = "releases/mozilla-beta" diff --git a/testing/mozharness/configs/l10n_bumper/mozilla-central.py b/testing/mozharness/configs/l10n_bumper/mozilla-central.py index 7bfaa90b1f4d..d033ec6bb26b 100644 --- a/testing/mozharness/configs/l10n_bumper/mozilla-central.py +++ b/testing/mozharness/configs/l10n_bumper/mozilla-central.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import sys MULTI_REPO = "mozilla-central" diff --git a/testing/mozharness/configs/l10n_bumper/mozilla-esr68.py b/testing/mozharness/configs/l10n_bumper/mozilla-esr68.py index 01a7c85e2d58..4b3c28be54c0 100644 --- a/testing/mozharness/configs/l10n_bumper/mozilla-esr68.py +++ b/testing/mozharness/configs/l10n_bumper/mozilla-esr68.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import sys MULTI_REPO = "releases/mozilla-esr68" diff --git a/testing/mozharness/configs/marionette/windows_taskcluster_config.py b/testing/mozharness/configs/marionette/windows_taskcluster_config.py index 634982d574ae..95d3f388f359 100644 --- a/testing/mozharness/configs/marionette/windows_taskcluster_config.py +++ b/testing/mozharness/configs/marionette/windows_taskcluster_config.py @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. # This is a template config file for marionette production on Windows. +from __future__ import absolute_import import os import platform import sys diff --git a/testing/mozharness/configs/merge_day/beta_to_release.py b/testing/mozharness/configs/merge_day/beta_to_release.py index 830a5233ae5c..51a1f7617f4a 100644 --- a/testing/mozharness/configs/merge_day/beta_to_release.py +++ b/testing/mozharness/configs/merge_day/beta_to_release.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os ABS_WORK_DIR = os.path.join(os.getcwd(), "build") diff --git a/testing/mozharness/configs/merge_day/bump_central.py b/testing/mozharness/configs/merge_day/bump_central.py index 0d96344cb2ed..55b86858e345 100644 --- a/testing/mozharness/configs/merge_day/bump_central.py +++ b/testing/mozharness/configs/merge_day/bump_central.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os ABS_WORK_DIR = os.path.join(os.getcwd(), "build") diff --git a/testing/mozharness/configs/merge_day/bump_esr.py b/testing/mozharness/configs/merge_day/bump_esr.py index 30132cefeaa6..cfcda871d2f8 100644 --- a/testing/mozharness/configs/merge_day/bump_esr.py +++ b/testing/mozharness/configs/merge_day/bump_esr.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os ABS_WORK_DIR = os.path.join(os.getcwd(), "build") diff --git a/testing/mozharness/configs/merge_day/central_to_beta.py b/testing/mozharness/configs/merge_day/central_to_beta.py index d5fda0a6bc61..7dfd1ad53527 100644 --- a/testing/mozharness/configs/merge_day/central_to_beta.py +++ b/testing/mozharness/configs/merge_day/central_to_beta.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os ABS_WORK_DIR = os.path.join(os.getcwd(), "build") diff --git a/testing/mozharness/configs/merge_day/release_to_esr.py b/testing/mozharness/configs/merge_day/release_to_esr.py index e5ac5eba45bd..61136c88b82e 100644 --- a/testing/mozharness/configs/merge_day/release_to_esr.py +++ b/testing/mozharness/configs/merge_day/release_to_esr.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os ABS_WORK_DIR = os.path.join(os.getcwd(), "build") diff --git a/testing/mozharness/configs/merge_day/staging_beta_migration.py b/testing/mozharness/configs/merge_day/staging_beta_migration.py index c9f49c00e86e..5576c4d2faa4 100644 --- a/testing/mozharness/configs/merge_day/staging_beta_migration.py +++ b/testing/mozharness/configs/merge_day/staging_beta_migration.py @@ -6,6 +6,7 @@ # mozharness/scripts/merge_day/gecko_migration.py -c \ # mozharness/configs/merge_day/aurora_to_beta.py -c # mozharness/configs/merge_day/staging_beta_migration.py ... +from __future__ import absolute_import import os ABS_WORK_DIR = os.path.join(os.getcwd(), "build") diff --git a/testing/mozharness/configs/openh264/linux32.py b/testing/mozharness/configs/openh264/linux32.py index 9f8cd9a92894..bb3ea624fae5 100644 --- a/testing/mozharness/configs/openh264/linux32.py +++ b/testing/mozharness/configs/openh264/linux32.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import mozharness diff --git a/testing/mozharness/configs/openh264/linux64.py b/testing/mozharness/configs/openh264/linux64.py index 83f21e6bdbae..4b74575debab 100644 --- a/testing/mozharness/configs/openh264/linux64.py +++ b/testing/mozharness/configs/openh264/linux64.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import mozharness diff --git a/testing/mozharness/configs/openh264/macosx64-aarch64.py b/testing/mozharness/configs/openh264/macosx64-aarch64.py index e5fc2c5e92aa..6ccce2ac7bf3 100644 --- a/testing/mozharness/configs/openh264/macosx64-aarch64.py +++ b/testing/mozharness/configs/openh264/macosx64-aarch64.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import mozharness diff --git a/testing/mozharness/configs/openh264/macosx64.py b/testing/mozharness/configs/openh264/macosx64.py index 1f0872e2c958..a168d61e259d 100644 --- a/testing/mozharness/configs/openh264/macosx64.py +++ b/testing/mozharness/configs/openh264/macosx64.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import mozharness diff --git a/testing/mozharness/configs/openh264/win32.py b/testing/mozharness/configs/openh264/win32.py index e2213972876c..72f1663fb956 100644 --- a/testing/mozharness/configs/openh264/win32.py +++ b/testing/mozharness/configs/openh264/win32.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import sys import os diff --git a/testing/mozharness/configs/openh264/win64-aarch64.py b/testing/mozharness/configs/openh264/win64-aarch64.py index 30c2ff837591..5f6c3c4a670d 100644 --- a/testing/mozharness/configs/openh264/win64-aarch64.py +++ b/testing/mozharness/configs/openh264/win64-aarch64.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import sys import os diff --git a/testing/mozharness/configs/openh264/win64.py b/testing/mozharness/configs/openh264/win64.py index 4b5d7792600c..7beca2150099 100644 --- a/testing/mozharness/configs/openh264/win64.py +++ b/testing/mozharness/configs/openh264/win64.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import sys import os diff --git a/testing/mozharness/configs/raptor/android_hw_config.py b/testing/mozharness/configs/raptor/android_hw_config.py index 81118b497b6c..848862fe9c92 100644 --- a/testing/mozharness/configs/raptor/android_hw_config.py +++ b/testing/mozharness/configs/raptor/android_hw_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/raptor/linux64_config_taskcluster.py b/testing/mozharness/configs/raptor/linux64_config_taskcluster.py index e3b2870c92b0..769f205b2c42 100644 --- a/testing/mozharness/configs/raptor/linux64_config_taskcluster.py +++ b/testing/mozharness/configs/raptor/linux64_config_taskcluster.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/configs/raptor/linux_config.py b/testing/mozharness/configs/raptor/linux_config.py index 7fffe20bb6e5..e3133e68f749 100644 --- a/testing/mozharness/configs/raptor/linux_config.py +++ b/testing/mozharness/configs/raptor/linux_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os VENV_PATH = "%s/build/venv" % os.getcwd() diff --git a/testing/mozharness/configs/raptor/mac_config.py b/testing/mozharness/configs/raptor/mac_config.py index b3d8a0177fc0..46467b3338b0 100644 --- a/testing/mozharness/configs/raptor/mac_config.py +++ b/testing/mozharness/configs/raptor/mac_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os VENV_PATH = "%s/build/venv" % os.getcwd() diff --git a/testing/mozharness/configs/raptor/windows_config.py b/testing/mozharness/configs/raptor/windows_config.py index 61adcf56b8c6..149f863b5910 100644 --- a/testing/mozharness/configs/raptor/windows_config.py +++ b/testing/mozharness/configs/raptor/windows_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import socket import sys diff --git a/testing/mozharness/configs/raptor/windows_vm_config.py b/testing/mozharness/configs/raptor/windows_vm_config.py index d5e62e11bdaf..e6be9838fcad 100644 --- a/testing/mozharness/configs/raptor/windows_vm_config.py +++ b/testing/mozharness/configs/raptor/windows_vm_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import socket import sys diff --git a/testing/mozharness/configs/repackage/base.py b/testing/mozharness/configs/repackage/base.py index 517ddbb2d731..fb2e06529e00 100644 --- a/testing/mozharness/configs/repackage/base.py +++ b/testing/mozharness/configs/repackage/base.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/repackage/linux32_signed.py b/testing/mozharness/configs/repackage/linux32_signed.py index adbed9537b28..3f5262682e82 100644 --- a/testing/mozharness/configs/repackage/linux32_signed.py +++ b/testing/mozharness/configs/repackage/linux32_signed.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os platform = "linux32" diff --git a/testing/mozharness/configs/repackage/linux64_signed.py b/testing/mozharness/configs/repackage/linux64_signed.py index d1431456c00b..f21e44b5f00c 100644 --- a/testing/mozharness/configs/repackage/linux64_signed.py +++ b/testing/mozharness/configs/repackage/linux64_signed.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os platform = "linux64" diff --git a/testing/mozharness/configs/repackage/osx_partner.py b/testing/mozharness/configs/repackage/osx_partner.py index e8e93c5e8f8b..8953e4af821f 100644 --- a/testing/mozharness/configs/repackage/osx_partner.py +++ b/testing/mozharness/configs/repackage/osx_partner.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/repackage/osx_signed.py b/testing/mozharness/configs/repackage/osx_signed.py index 3a2413e3cef9..680dff8e329e 100644 --- a/testing/mozharness/configs/repackage/osx_signed.py +++ b/testing/mozharness/configs/repackage/osx_signed.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/repackage/win32_partner.py b/testing/mozharness/configs/repackage/win32_partner.py index 375f949c3a43..36c74cfa4474 100644 --- a/testing/mozharness/configs/repackage/win32_partner.py +++ b/testing/mozharness/configs/repackage/win32_partner.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os platform = "win32" diff --git a/testing/mozharness/configs/repackage/win32_signed.py b/testing/mozharness/configs/repackage/win32_signed.py index 1095a8ff018b..c66a105c39b1 100644 --- a/testing/mozharness/configs/repackage/win32_signed.py +++ b/testing/mozharness/configs/repackage/win32_signed.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os platform = "win32" diff --git a/testing/mozharness/configs/repackage/win64_partner.py b/testing/mozharness/configs/repackage/win64_partner.py index d5aa55e7284d..053f480fe607 100644 --- a/testing/mozharness/configs/repackage/win64_partner.py +++ b/testing/mozharness/configs/repackage/win64_partner.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os platform = "win64" diff --git a/testing/mozharness/configs/repackage/win64_signed.py b/testing/mozharness/configs/repackage/win64_signed.py index 3b0a23ef041f..23e7b123a7f8 100644 --- a/testing/mozharness/configs/repackage/win64_signed.py +++ b/testing/mozharness/configs/repackage/win64_signed.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os platform = "win64" diff --git a/testing/mozharness/configs/single_locale/tc_linux32.py b/testing/mozharness/configs/single_locale/tc_linux32.py index 4ae752847378..fc40fe997fbe 100644 --- a/testing/mozharness/configs/single_locale/tc_linux32.py +++ b/testing/mozharness/configs/single_locale/tc_linux32.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/single_locale/tc_linux_common.py b/testing/mozharness/configs/single_locale/tc_linux_common.py index 4ae752847378..fc40fe997fbe 100644 --- a/testing/mozharness/configs/single_locale/tc_linux_common.py +++ b/testing/mozharness/configs/single_locale/tc_linux_common.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/single_locale/tc_macosx64.py b/testing/mozharness/configs/single_locale/tc_macosx64.py index 4ae752847378..fc40fe997fbe 100644 --- a/testing/mozharness/configs/single_locale/tc_macosx64.py +++ b/testing/mozharness/configs/single_locale/tc_macosx64.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/single_locale/tc_win32.py b/testing/mozharness/configs/single_locale/tc_win32.py index fd075c94ec5f..26fa8d91355a 100644 --- a/testing/mozharness/configs/single_locale/tc_win32.py +++ b/testing/mozharness/configs/single_locale/tc_win32.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/single_locale/tc_win64.py b/testing/mozharness/configs/single_locale/tc_win64.py index 8b7c1a33f509..c172ac5f413a 100644 --- a/testing/mozharness/configs/single_locale/tc_win64.py +++ b/testing/mozharness/configs/single_locale/tc_win64.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/talos/linux64_config_taskcluster.py b/testing/mozharness/configs/talos/linux64_config_taskcluster.py index 4fe2861d8fd1..998ef03485b6 100644 --- a/testing/mozharness/configs/talos/linux64_config_taskcluster.py +++ b/testing/mozharness/configs/talos/linux64_config_taskcluster.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/configs/talos/linux_config.py b/testing/mozharness/configs/talos/linux_config.py index c26fa4f8e598..51c3cc7f1183 100644 --- a/testing/mozharness/configs/talos/linux_config.py +++ b/testing/mozharness/configs/talos/linux_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os VENV_PATH = "%s/build/venv" % os.getcwd() diff --git a/testing/mozharness/configs/talos/mac_config.py b/testing/mozharness/configs/talos/mac_config.py index a8a5f9b87dc4..c06dc016fe59 100644 --- a/testing/mozharness/configs/talos/mac_config.py +++ b/testing/mozharness/configs/talos/mac_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os VENV_PATH = "%s/build/venv" % os.getcwd() diff --git a/testing/mozharness/configs/talos/windows_config.py b/testing/mozharness/configs/talos/windows_config.py index 29170f9dd87d..b72f50b9d555 100644 --- a/testing/mozharness/configs/talos/windows_config.py +++ b/testing/mozharness/configs/talos/windows_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import socket import sys diff --git a/testing/mozharness/configs/talos/windows_taskcluster_config.py b/testing/mozharness/configs/talos/windows_taskcluster_config.py index 97e67b451317..ac5462ca7dff 100644 --- a/testing/mozharness/configs/talos/windows_taskcluster_config.py +++ b/testing/mozharness/configs/talos/windows_taskcluster_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import socket import sys diff --git a/testing/mozharness/configs/talos/windows_vm_config.py b/testing/mozharness/configs/talos/windows_vm_config.py index a5a7fa4f893c..61e53db2dc65 100644 --- a/testing/mozharness/configs/talos/windows_vm_config.py +++ b/testing/mozharness/configs/talos/windows_vm_config.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import socket import sys diff --git a/testing/mozharness/configs/unittests/linux_unittest.py b/testing/mozharness/configs/unittests/linux_unittest.py index a813f43e0742..7068aef0a102 100644 --- a/testing/mozharness/configs/unittests/linux_unittest.py +++ b/testing/mozharness/configs/unittests/linux_unittest.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import platform diff --git a/testing/mozharness/configs/unittests/mac_unittest.py b/testing/mozharness/configs/unittests/mac_unittest.py index dca9dd6604fa..e6a19786046a 100644 --- a/testing/mozharness/configs/unittests/mac_unittest.py +++ b/testing/mozharness/configs/unittests/mac_unittest.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os # OS Specifics diff --git a/testing/mozharness/configs/unittests/win_unittest.py b/testing/mozharness/configs/unittests/win_unittest.py index 939b3d90cd8f..bfca6d5c7f17 100644 --- a/testing/mozharness/configs/unittests/win_unittest.py +++ b/testing/mozharness/configs/unittests/win_unittest.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import platform import sys diff --git a/testing/mozharness/configs/web_platform_tests/prod_config.py b/testing/mozharness/configs/web_platform_tests/prod_config.py index ee3f192b683e..25f9a7240dce 100644 --- a/testing/mozharness/configs/web_platform_tests/prod_config.py +++ b/testing/mozharness/configs/web_platform_tests/prod_config.py @@ -4,6 +4,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import os # OS Specifics diff --git a/testing/mozharness/configs/web_platform_tests/prod_config_android.py b/testing/mozharness/configs/web_platform_tests/prod_config_android.py index f1644d26fd65..23c366f42f5a 100644 --- a/testing/mozharness/configs/web_platform_tests/prod_config_android.py +++ b/testing/mozharness/configs/web_platform_tests/prod_config_android.py @@ -3,6 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import os config = { diff --git a/testing/mozharness/configs/web_platform_tests/prod_config_mac.py b/testing/mozharness/configs/web_platform_tests/prod_config_mac.py index 17a013300355..b663f9be59e4 100644 --- a/testing/mozharness/configs/web_platform_tests/prod_config_mac.py +++ b/testing/mozharness/configs/web_platform_tests/prod_config_mac.py @@ -4,6 +4,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import os # OS Specifics diff --git a/testing/mozharness/configs/web_platform_tests/prod_config_windows.py b/testing/mozharness/configs/web_platform_tests/prod_config_windows.py index e62ea4ad9492..227b126683b4 100644 --- a/testing/mozharness/configs/web_platform_tests/prod_config_windows.py +++ b/testing/mozharness/configs/web_platform_tests/prod_config_windows.py @@ -6,6 +6,7 @@ # This is a template config file for web-platform-tests test. +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/configs/web_platform_tests/prod_config_windows_taskcluster.py b/testing/mozharness/configs/web_platform_tests/prod_config_windows_taskcluster.py index b488db4c6e46..4c863e2af9c5 100644 --- a/testing/mozharness/configs/web_platform_tests/prod_config_windows_taskcluster.py +++ b/testing/mozharness/configs/web_platform_tests/prod_config_windows_taskcluster.py @@ -6,6 +6,7 @@ # This is a template config file for web-platform-tests test. +from __future__ import absolute_import import os import platform import sys diff --git a/testing/mozharness/configs/web_platform_tests/test_config_windows.py b/testing/mozharness/configs/web_platform_tests/test_config_windows.py index 2b05a3bf7aa6..8262f017bdce 100644 --- a/testing/mozharness/configs/web_platform_tests/test_config_windows.py +++ b/testing/mozharness/configs/web_platform_tests/test_config_windows.py @@ -4,6 +4,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import sys config = { diff --git a/testing/mozharness/docs/conf.py b/testing/mozharness/docs/conf.py index 1fb8e80882f7..cb50373ca5bc 100644 --- a/testing/mozharness/docs/conf.py +++ b/testing/mozharness/docs/conf.py @@ -12,6 +12,7 @@ # All configuration values have a default; values that are commented out # serve to show the default. +from __future__ import absolute_import import sys import os diff --git a/testing/mozharness/examples/action_config_script.py b/testing/mozharness/examples/action_config_script.py index d483d91d5235..93d4d528197c 100755 --- a/testing/mozharness/examples/action_config_script.py +++ b/testing/mozharness/examples/action_config_script.py @@ -8,7 +8,7 @@ Demonstrate actions and config. """ -from __future__ import print_function +from __future__ import absolute_import, print_function import os import sys import time diff --git a/testing/mozharness/examples/silent_script.py b/testing/mozharness/examples/silent_script.py index 6b00ac1c9395..65148870b374 100755 --- a/testing/mozharness/examples/silent_script.py +++ b/testing/mozharness/examples/silent_script.py @@ -7,6 +7,7 @@ concept, logging. http://escapewindow.dreamwidth.org/230853.html """ +from __future__ import absolute_import import os import shutil diff --git a/testing/mozharness/examples/venv.py b/testing/mozharness/examples/venv.py index 82ee3d0109ce..4fb109d046df 100755 --- a/testing/mozharness/examples/venv.py +++ b/testing/mozharness/examples/venv.py @@ -8,6 +8,7 @@ Test virtualenv creation. This installs talos in the local venv; that's it. """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/examples/verbose_script.py b/testing/mozharness/examples/verbose_script.py index f30ed8f5d5d4..0478d052976a 100755 --- a/testing/mozharness/examples/verbose_script.py +++ b/testing/mozharness/examples/verbose_script.py @@ -8,6 +8,7 @@ Contrast to silent_script.py. """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/external_tools/extract_and_run_command.py b/testing/mozharness/external_tools/extract_and_run_command.py index 6aed3bcd2e97..d936936a28a7 100644 --- a/testing/mozharness/external_tools/extract_and_run_command.py +++ b/testing/mozharness/external_tools/extract_and_run_command.py @@ -20,6 +20,7 @@ WARNING: This script does NOT respond to SIGINT. You must use SIGQUIT or SIGKILL ### stage.mozilla.org, see # https://wiki.mozilla.org/ReleaseEngineering/How_To/Modify_scripts_on_stage +from __future__ import absolute_import import logging import os import shutil diff --git a/testing/mozharness/external_tools/gittool.py b/testing/mozharness/external_tools/gittool.py index 8b8ce985d332..4423917901bb 100755 --- a/testing/mozharness/external_tools/gittool.py +++ b/testing/mozharness/external_tools/gittool.py @@ -2,7 +2,7 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function +from __future__ import absolute_import, print_function ### Compressed module sources ### module_sources = [ diff --git a/testing/mozharness/external_tools/mouse_and_screen_resolution.py b/testing/mozharness/external_tools/mouse_and_screen_resolution.py index 94c1d9b1791a..c854e250f81e 100755 --- a/testing/mozharness/external_tools/mouse_and_screen_resolution.py +++ b/testing/mozharness/external_tools/mouse_and_screen_resolution.py @@ -9,7 +9,7 @@ # Target: Python 2.7 or newer # -from __future__ import print_function +from __future__ import absolute_import, print_function import os import platform import socket diff --git a/testing/mozharness/external_tools/packagesymbols.py b/testing/mozharness/external_tools/packagesymbols.py index c49ebde49d93..4a5dec3efdd1 100644 --- a/testing/mozharness/external_tools/packagesymbols.py +++ b/testing/mozharness/external_tools/packagesymbols.py @@ -4,7 +4,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function +from __future__ import absolute_import, print_function import argparse import os diff --git a/testing/mozharness/mozharness/base/config.py b/testing/mozharness/mozharness/base/config.py index 51dc304ef9ce..6d8145810de7 100644 --- a/testing/mozharness/mozharness/base/config.py +++ b/testing/mozharness/mozharness/base/config.py @@ -24,7 +24,7 @@ TODO: these settings are set. """ -from __future__ import print_function +from __future__ import absolute_import, print_function import os import socket diff --git a/testing/mozharness/mozharness/base/diskutils.py b/testing/mozharness/mozharness/base/diskutils.py index 81f4d8d4aa68..7bff69cc2232 100644 --- a/testing/mozharness/mozharness/base/diskutils.py +++ b/testing/mozharness/mozharness/base/diskutils.py @@ -28,7 +28,7 @@ pass """ -from __future__ import division +from __future__ import absolute_import, division import ctypes import logging import os diff --git a/testing/mozharness/mozharness/base/errors.py b/testing/mozharness/mozharness/base/errors.py index ba8c30f817ea..03dc0789d584 100755 --- a/testing/mozharness/mozharness/base/errors.py +++ b/testing/mozharness/mozharness/base/errors.py @@ -19,6 +19,7 @@ appropriate level (please don't die on any errors; please die on any warning; etc.) or platform or language or whatever. """ +from __future__ import absolute_import import re from mozharness.base.log import CRITICAL, DEBUG, ERROR, WARNING diff --git a/testing/mozharness/mozharness/base/log.py b/testing/mozharness/mozharness/base/log.py index b0ca6434e93d..b2c41b1bf1a0 100755 --- a/testing/mozharness/mozharness/base/log.py +++ b/testing/mozharness/mozharness/base/log.py @@ -24,7 +24,7 @@ TODO: - log rotation config """ -from __future__ import print_function +from __future__ import absolute_import, print_function import logging import os diff --git a/testing/mozharness/mozharness/base/python.py b/testing/mozharness/mozharness/base/python.py index 1f777324152f..293129c54bd4 100644 --- a/testing/mozharness/mozharness/base/python.py +++ b/testing/mozharness/mozharness/base/python.py @@ -7,7 +7,7 @@ """Python usage, esp. virtualenv. """ -from __future__ import division +from __future__ import absolute_import, division import errno import json import os diff --git a/testing/mozharness/mozharness/base/script.py b/testing/mozharness/mozharness/base/script.py index 620390e2f283..e11d62b98614 100644 --- a/testing/mozharness/mozharness/base/script.py +++ b/testing/mozharness/mozharness/base/script.py @@ -9,7 +9,7 @@ script.py, along with config.py and log.py, represents the core of mozharness. """ -from __future__ import print_function +from __future__ import absolute_import, print_function import codecs import datetime diff --git a/testing/mozharness/mozharness/base/transfer.py b/testing/mozharness/mozharness/base/transfer.py index 90ea976b8b5e..4994a36b0d32 100755 --- a/testing/mozharness/mozharness/base/transfer.py +++ b/testing/mozharness/mozharness/base/transfer.py @@ -7,6 +7,7 @@ """Generic ways to upload + download files. """ +from __future__ import absolute_import import pprint try: diff --git a/testing/mozharness/mozharness/base/vcs/gittool.py b/testing/mozharness/mozharness/base/vcs/gittool.py index e9d0c0e2c9f6..cc0eaef8e407 100644 --- a/testing/mozharness/mozharness/base/vcs/gittool.py +++ b/testing/mozharness/mozharness/base/vcs/gittool.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import re diff --git a/testing/mozharness/mozharness/base/vcs/mercurial.py b/testing/mozharness/mozharness/base/vcs/mercurial.py index 63b0d27c34b5..d00bc8a22144 100755 --- a/testing/mozharness/mozharness/base/vcs/mercurial.py +++ b/testing/mozharness/mozharness/base/vcs/mercurial.py @@ -7,6 +7,7 @@ """Mercurial VCS support. """ +from __future__ import absolute_import import hashlib import os import re diff --git a/testing/mozharness/mozharness/base/vcs/vcsbase.py b/testing/mozharness/mozharness/base/vcs/vcsbase.py index c587a8b1cab9..ab2dfe6bdbf9 100755 --- a/testing/mozharness/mozharness/base/vcs/vcsbase.py +++ b/testing/mozharness/mozharness/base/vcs/vcsbase.py @@ -7,6 +7,7 @@ """Generic VCS support. """ +from __future__ import absolute_import import os import sys from copy import deepcopy diff --git a/testing/mozharness/mozharness/lib/python/authentication.py b/testing/mozharness/mozharness/lib/python/authentication.py index 23e8b1f75859..bf83171e73ff 100644 --- a/testing/mozharness/mozharness/lib/python/authentication.py +++ b/testing/mozharness/mozharness/lib/python/authentication.py @@ -5,7 +5,7 @@ # ***** END LICENSE BLOCK ***** """module for http authentication operations""" -from __future__ import print_function +from __future__ import absolute_import, print_function import getpass import os diff --git a/testing/mozharness/mozharness/mozilla/automation.py b/testing/mozharness/mozharness/mozilla/automation.py index d2bd5d27dfba..b835bf04c75b 100644 --- a/testing/mozharness/mozharness/mozilla/automation.py +++ b/testing/mozharness/mozharness/mozilla/automation.py @@ -7,6 +7,8 @@ """Code to integration with automation. """ +from __future__ import absolute_import + try: import simplejson as json diff --git a/testing/mozharness/mozharness/mozilla/bouncer/submitter.py b/testing/mozharness/mozharness/mozilla/bouncer/submitter.py index ff60a857085d..7d04c94f154b 100644 --- a/testing/mozharness/mozharness/mozilla/bouncer/submitter.py +++ b/testing/mozharness/mozharness/mozilla/bouncer/submitter.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import base64 import socket import sys diff --git a/testing/mozharness/mozharness/mozilla/building/buildbase.py b/testing/mozharness/mozharness/mozilla/building/buildbase.py index 50c7752b1d7c..d2d21a251a3f 100755 --- a/testing/mozharness/mozharness/mozilla/building/buildbase.py +++ b/testing/mozharness/mozharness/mozilla/building/buildbase.py @@ -10,6 +10,7 @@ provides a base class for fx desktop builds author: Jordan Lund """ +from __future__ import absolute_import import copy import json import os diff --git a/testing/mozharness/mozharness/mozilla/checksums.py b/testing/mozharness/mozharness/mozilla/checksums.py index e7071d506a41..6d62aa379be7 100644 --- a/testing/mozharness/mozharness/mozilla/checksums.py +++ b/testing/mozharness/mozharness/mozilla/checksums.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import six diff --git a/testing/mozharness/mozharness/mozilla/firefox/autoconfig.py b/testing/mozharness/mozharness/mozilla/firefox/autoconfig.py index 476277e66130..8d59976b689f 100644 --- a/testing/mozharness/mozharness/mozilla/firefox/autoconfig.py +++ b/testing/mozharness/mozharness/mozilla/firefox/autoconfig.py @@ -2,6 +2,7 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os from mozharness.base.script import platform_name diff --git a/testing/mozharness/mozharness/mozilla/l10n/locales.py b/testing/mozharness/mozharness/mozilla/l10n/locales.py index 83fadd0133f4..2101394f2173 100755 --- a/testing/mozharness/mozharness/mozilla/l10n/locales.py +++ b/testing/mozharness/mozharness/mozilla/l10n/locales.py @@ -7,6 +7,7 @@ """Localization. """ +from __future__ import absolute_import import os import pprint diff --git a/testing/mozharness/mozharness/mozilla/l10n/multi_locale_build.py b/testing/mozharness/mozharness/mozilla/l10n/multi_locale_build.py index 6b1f8c47827d..5c8bb510d096 100755 --- a/testing/mozharness/mozharness/mozilla/l10n/multi_locale_build.py +++ b/testing/mozharness/mozharness/mozilla/l10n/multi_locale_build.py @@ -9,6 +9,7 @@ This should be a mostly generic multilocale build script. """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/mozharness/mozilla/merkle.py b/testing/mozharness/mozharness/mozilla/merkle.py index dba780b73a14..9b71612ec470 100644 --- a/testing/mozharness/mozharness/mozilla/merkle.py +++ b/testing/mozharness/mozharness/mozilla/merkle.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import struct diff --git a/testing/mozharness/mozharness/mozilla/mozbase.py b/testing/mozharness/mozharness/mozilla/mozbase.py index 4440ea0e1a3b..2dd65c87df82 100644 --- a/testing/mozharness/mozharness/mozilla/mozbase.py +++ b/testing/mozharness/mozharness/mozilla/mozbase.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os from mozharness.base.script import PreScriptAction diff --git a/testing/mozharness/mozharness/mozilla/repo_manipulation.py b/testing/mozharness/mozharness/mozilla/repo_manipulation.py index de3395ceeb5c..356d8f006f13 100644 --- a/testing/mozharness/mozharness/mozilla/repo_manipulation.py +++ b/testing/mozharness/mozharness/mozilla/repo_manipulation.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import ConfigParser import json import os diff --git a/testing/mozharness/mozharness/mozilla/secrets.py b/testing/mozharness/mozharness/mozilla/secrets.py index 720b02fd22c9..9bab74caaa61 100644 --- a/testing/mozharness/mozharness/mozilla/secrets.py +++ b/testing/mozharness/mozharness/mozilla/secrets.py @@ -7,6 +7,7 @@ """Support for fetching secrets from the secrets API """ +from __future__ import absolute_import import os import six from six.moves import urllib diff --git a/testing/mozharness/mozharness/mozilla/structuredlog.py b/testing/mozharness/mozharness/mozilla/structuredlog.py index 9a6dd7eee94b..674ab51b9b9c 100644 --- a/testing/mozharness/mozharness/mozilla/structuredlog.py +++ b/testing/mozharness/mozharness/mozilla/structuredlog.py @@ -3,6 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import json from mozharness.base import log diff --git a/testing/mozharness/mozharness/mozilla/testing/android.py b/testing/mozharness/mozharness/mozilla/testing/android.py index 4ae1a92830cb..42edf10f23d4 100644 --- a/testing/mozharness/mozharness/mozilla/testing/android.py +++ b/testing/mozharness/mozharness/mozilla/testing/android.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import datetime import glob import os diff --git a/testing/mozharness/mozharness/mozilla/testing/errors.py b/testing/mozharness/mozharness/mozilla/testing/errors.py index 2ab314efc8d4..b42c05151d2c 100644 --- a/testing/mozharness/mozharness/mozilla/testing/errors.py +++ b/testing/mozharness/mozharness/mozilla/testing/errors.py @@ -14,6 +14,7 @@ whether IGNORE, DEBUG, INFO, WARNING, ERROR, CRITICAL, or FATAL. """ +from __future__ import absolute_import import re from mozharness.base.log import INFO, WARNING, ERROR diff --git a/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py b/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py index d1c0ec43c7b6..fd60c8bd3236 100644 --- a/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py +++ b/testing/mozharness/mozharness/mozilla/testing/firefox_ui_tests.py @@ -6,6 +6,7 @@ # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import os import sys diff --git a/testing/mozharness/mozharness/mozilla/testing/per_test_base.py b/testing/mozharness/mozharness/mozilla/testing/per_test_base.py index a23a319b7360..71d5646a01fd 100644 --- a/testing/mozharness/mozharness/mozilla/testing/per_test_base.py +++ b/testing/mozharness/mozharness/mozilla/testing/per_test_base.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import itertools import json import math diff --git a/testing/mozharness/mozharness/mozilla/testing/talos.py b/testing/mozharness/mozharness/mozilla/testing/talos.py index f835fcfe2b40..b35d701de100 100755 --- a/testing/mozharness/mozharness/mozilla/testing/talos.py +++ b/testing/mozharness/mozharness/mozilla/testing/talos.py @@ -8,6 +8,7 @@ run talos tests in a virtualenv """ +from __future__ import absolute_import import io import os import sys diff --git a/testing/mozharness/mozharness/mozilla/testing/testbase.py b/testing/mozharness/mozharness/mozilla/testing/testbase.py index 7adeb3d087d5..31efebaedf34 100755 --- a/testing/mozharness/mozharness/mozilla/testing/testbase.py +++ b/testing/mozharness/mozharness/mozilla/testing/testbase.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import os import platform diff --git a/testing/mozharness/mozharness/mozilla/testing/try_tools.py b/testing/mozharness/mozharness/mozilla/testing/try_tools.py index 50acedd41a66..ff2fa71bc4e0 100644 --- a/testing/mozharness/mozharness/mozilla/testing/try_tools.py +++ b/testing/mozharness/mozharness/mozilla/testing/try_tools.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import argparse import os import re diff --git a/testing/mozharness/mozharness/mozilla/testing/unittest.py b/testing/mozharness/mozharness/mozilla/testing/unittest.py index 13c24b5e80b7..d6fabae2b6cb 100755 --- a/testing/mozharness/mozharness/mozilla/testing/unittest.py +++ b/testing/mozharness/mozharness/mozilla/testing/unittest.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import re import os diff --git a/testing/mozharness/mozharness/mozilla/testing/verify_tools.py b/testing/mozharness/mozharness/mozilla/testing/verify_tools.py index 506ea2c3f4fa..d58f9de7b9f3 100644 --- a/testing/mozharness/mozharness/mozilla/testing/verify_tools.py +++ b/testing/mozharness/mozharness/mozilla/testing/verify_tools.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import from mozharness.base.script import PostScriptAction from mozharness.mozilla.testing.per_test_base import SingleTestMixin diff --git a/testing/mozharness/mozharness/mozilla/tooltool.py b/testing/mozharness/mozharness/mozilla/tooltool.py index 0a611cf6f39e..4ea8e7ee76d7 100644 --- a/testing/mozharness/mozharness/mozilla/tooltool.py +++ b/testing/mozharness/mozharness/mozilla/tooltool.py @@ -3,6 +3,7 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. """module for tooltool operations""" +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/mozharness/mozilla/vcstools.py b/testing/mozharness/mozharness/mozilla/vcstools.py index 974923b6ec00..712b8eb45c04 100644 --- a/testing/mozharness/mozharness/mozilla/vcstools.py +++ b/testing/mozharness/mozharness/mozilla/vcstools.py @@ -8,6 +8,7 @@ Author: Armen Zambrano G. """ +from __future__ import absolute_import import os from mozharness.base.script import PreScriptAction diff --git a/testing/mozharness/scripts/android_emulator_pgo.py b/testing/mozharness/scripts/android_emulator_pgo.py index abee3a32aab8..3aae63c16101 100644 --- a/testing/mozharness/scripts/android_emulator_pgo.py +++ b/testing/mozharness/scripts/android_emulator_pgo.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import json import time diff --git a/testing/mozharness/scripts/android_emulator_unittest.py b/testing/mozharness/scripts/android_emulator_unittest.py index 4a8bb3dff29e..a74e58d2d21e 100644 --- a/testing/mozharness/scripts/android_emulator_unittest.py +++ b/testing/mozharness/scripts/android_emulator_unittest.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import datetime import json diff --git a/testing/mozharness/scripts/android_hardware_unittest.py b/testing/mozharness/scripts/android_hardware_unittest.py index 586e0c2c4160..21ce705b1473 100644 --- a/testing/mozharness/scripts/android_hardware_unittest.py +++ b/testing/mozharness/scripts/android_hardware_unittest.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import datetime import json diff --git a/testing/mozharness/scripts/android_wrench.py b/testing/mozharness/scripts/android_wrench.py index ac3d9727cbbb..be22d403f129 100644 --- a/testing/mozharness/scripts/android_wrench.py +++ b/testing/mozharness/scripts/android_wrench.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import datetime import os import subprocess diff --git a/testing/mozharness/scripts/awsy_script.py b/testing/mozharness/scripts/awsy_script.py index 59e23b3f6dcb..e81658b7aac9 100644 --- a/testing/mozharness/scripts/awsy_script.py +++ b/testing/mozharness/scripts/awsy_script.py @@ -8,6 +8,7 @@ run awsy tests in a virtualenv """ +from __future__ import absolute_import import copy import json import os diff --git a/testing/mozharness/scripts/configtest.py b/testing/mozharness/scripts/configtest.py index 4ac1fb701f09..ab9f3d118d4b 100755 --- a/testing/mozharness/scripts/configtest.py +++ b/testing/mozharness/scripts/configtest.py @@ -12,6 +12,7 @@ Further tests to verify validity would be desirable. This is also a good example script to look at to understand mozharness. """ +from __future__ import absolute_import import os import pprint import sys diff --git a/testing/mozharness/scripts/desktop_l10n.py b/testing/mozharness/scripts/desktop_l10n.py index 747e312a7066..76060f50fb71 100755 --- a/testing/mozharness/scripts/desktop_l10n.py +++ b/testing/mozharness/scripts/desktop_l10n.py @@ -8,6 +8,7 @@ This script manages Desktop repacks for nightly builds. """ +from __future__ import absolute_import import os import glob import sys diff --git a/testing/mozharness/scripts/desktop_partner_repacks.py b/testing/mozharness/scripts/desktop_partner_repacks.py index 90dea2f9fd11..003b446cd7c1 100755 --- a/testing/mozharness/scripts/desktop_partner_repacks.py +++ b/testing/mozharness/scripts/desktop_partner_repacks.py @@ -8,6 +8,7 @@ This script manages Desktop partner repacks for beta/release builds. """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/desktop_unittest.py b/testing/mozharness/scripts/desktop_unittest.py index 7c431720e73f..6143447bc752 100755 --- a/testing/mozharness/scripts/desktop_unittest.py +++ b/testing/mozharness/scripts/desktop_unittest.py @@ -10,6 +10,7 @@ author: Jordan Lund """ +from __future__ import absolute_import import json import os import re diff --git a/testing/mozharness/scripts/firefox_ui_tests/functional.py b/testing/mozharness/scripts/firefox_ui_tests/functional.py index 625af415ff9e..6cd941b33e15 100755 --- a/testing/mozharness/scripts/firefox_ui_tests/functional.py +++ b/testing/mozharness/scripts/firefox_ui_tests/functional.py @@ -6,6 +6,7 @@ # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/firefox_ui_tests/update.py b/testing/mozharness/scripts/firefox_ui_tests/update.py index 5165caa96c6c..d7e71bc1cddc 100755 --- a/testing/mozharness/scripts/firefox_ui_tests/update.py +++ b/testing/mozharness/scripts/firefox_ui_tests/update.py @@ -6,6 +6,7 @@ # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/firefox_ui_tests/update_release.py b/testing/mozharness/scripts/firefox_ui_tests/update_release.py index 8527e5e0993f..28fd096356fd 100755 --- a/testing/mozharness/scripts/firefox_ui_tests/update_release.py +++ b/testing/mozharness/scripts/firefox_ui_tests/update_release.py @@ -6,6 +6,7 @@ # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import os import pprint diff --git a/testing/mozharness/scripts/fx_desktop_build.py b/testing/mozharness/scripts/fx_desktop_build.py index 23f8ddd4a4d2..7d0f90cd7134 100755 --- a/testing/mozharness/scripts/fx_desktop_build.py +++ b/testing/mozharness/scripts/fx_desktop_build.py @@ -13,6 +13,7 @@ author: Jordan Lund """ +from __future__ import absolute_import import sys import os diff --git a/testing/mozharness/scripts/l10n_bumper.py b/testing/mozharness/scripts/l10n_bumper.py index 78e9a358b2af..ed8baaae1eb8 100755 --- a/testing/mozharness/scripts/l10n_bumper.py +++ b/testing/mozharness/scripts/l10n_bumper.py @@ -13,6 +13,7 @@ This is to allow for `mach taskgraph` to reference specific l10n revisions without having to resort to task.extra or commandline base64 json hacks. """ +from __future__ import absolute_import import codecs import os import pprint diff --git a/testing/mozharness/scripts/marionette.py b/testing/mozharness/scripts/marionette.py index 500265663ccf..aceebb0648bd 100755 --- a/testing/mozharness/scripts/marionette.py +++ b/testing/mozharness/scripts/marionette.py @@ -5,6 +5,7 @@ # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import json import os diff --git a/testing/mozharness/scripts/merge_day/gecko_migration.py b/testing/mozharness/scripts/merge_day/gecko_migration.py index 9254079548ad..2c92ccb63dba 100755 --- a/testing/mozharness/scripts/merge_day/gecko_migration.py +++ b/testing/mozharness/scripts/merge_day/gecko_migration.py @@ -16,6 +16,7 @@ and http://hg.mozilla.org/build/tools/file/084bc4e2fc76/release/merge_helper.py """ +from __future__ import absolute_import import os import pprint import subprocess diff --git a/testing/mozharness/scripts/multil10n.py b/testing/mozharness/scripts/multil10n.py index ae5c013fc768..d221ad5b3e3d 100755 --- a/testing/mozharness/scripts/multil10n.py +++ b/testing/mozharness/scripts/multil10n.py @@ -8,6 +8,7 @@ """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/openh264_build.py b/testing/mozharness/scripts/openh264_build.py index e0810f06a929..4fa5501a0ae2 100755 --- a/testing/mozharness/scripts/openh264_build.py +++ b/testing/mozharness/scripts/openh264_build.py @@ -4,6 +4,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import sys import os import glob diff --git a/testing/mozharness/scripts/raptor_script.py b/testing/mozharness/scripts/raptor_script.py index be2ed181e83a..5e3ce2c2a093 100644 --- a/testing/mozharness/scripts/raptor_script.py +++ b/testing/mozharness/scripts/raptor_script.py @@ -7,6 +7,7 @@ """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/release/bouncer_check.py b/testing/mozharness/scripts/release/bouncer_check.py index 4a6d5907ac13..c0ec7847352f 100644 --- a/testing/mozharness/scripts/release/bouncer_check.py +++ b/testing/mozharness/scripts/release/bouncer_check.py @@ -10,6 +10,7 @@ A script to check HTTP statuses of Bouncer products to be shipped. """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/release/generate-checksums.py b/testing/mozharness/scripts/release/generate-checksums.py index 6d01923e444c..81a781951b05 100644 --- a/testing/mozharness/scripts/release/generate-checksums.py +++ b/testing/mozharness/scripts/release/generate-checksums.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import binascii import hashlib import os diff --git a/testing/mozharness/scripts/release/update-verify-config-creator.py b/testing/mozharness/scripts/release/update-verify-config-creator.py index b22f30b88402..18dd27a068ed 100644 --- a/testing/mozharness/scripts/release/update-verify-config-creator.py +++ b/testing/mozharness/scripts/release/update-verify-config-creator.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import division +from __future__ import absolute_import, division from distutils.version import LooseVersion import json import math diff --git a/testing/mozharness/scripts/repackage.py b/testing/mozharness/scripts/repackage.py index a4f5c54dfe13..9c97074a788c 100644 --- a/testing/mozharness/scripts/repackage.py +++ b/testing/mozharness/scripts/repackage.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/talos_script.py b/testing/mozharness/scripts/talos_script.py index 10e441070c11..0ce4792133d5 100755 --- a/testing/mozharness/scripts/talos_script.py +++ b/testing/mozharness/scripts/talos_script.py @@ -8,6 +8,7 @@ """ +from __future__ import absolute_import import os import sys diff --git a/testing/mozharness/scripts/telemetry/telemetry_client.py b/testing/mozharness/scripts/telemetry/telemetry_client.py index 473e3d73ee69..4f6dfa588d40 100755 --- a/testing/mozharness/scripts/telemetry/telemetry_client.py +++ b/testing/mozharness/scripts/telemetry/telemetry_client.py @@ -6,6 +6,7 @@ # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import os import sys diff --git a/testing/mozharness/scripts/web_platform_tests.py b/testing/mozharness/scripts/web_platform_tests.py index f91a80d31101..70fd0e932895 100755 --- a/testing/mozharness/scripts/web_platform_tests.py +++ b/testing/mozharness/scripts/web_platform_tests.py @@ -4,6 +4,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. # ***** END LICENSE BLOCK ***** +from __future__ import absolute_import import copy import gzip import json diff --git a/testing/mozharness/setup.py b/testing/mozharness/setup.py index 0c4a9e718623..4602b5484ee7 100644 --- a/testing/mozharness/setup.py +++ b/testing/mozharness/setup.py @@ -2,6 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os from setuptools import setup, find_packages diff --git a/testing/mozharness/test/test_base_config.py b/testing/mozharness/test/test_base_config.py index 0cab84d870ed..110ed7eb57ec 100644 --- a/testing/mozharness/test/test_base_config.py +++ b/testing/mozharness/test/test_base_config.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import unittest diff --git a/testing/mozharness/test/test_base_diskutils.py b/testing/mozharness/test/test_base_diskutils.py index a3b21618f8be..2a4efc02dd71 100644 --- a/testing/mozharness/test/test_base_diskutils.py +++ b/testing/mozharness/test/test_base_diskutils.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import mock import unittest from mozharness.base.diskutils import convert_to, DiskutilsError, DiskSize, DiskInfo diff --git a/testing/mozharness/test/test_base_log.py b/testing/mozharness/test/test_base_log.py index 769cb1e39068..cf2e52356f04 100644 --- a/testing/mozharness/test/test_base_log.py +++ b/testing/mozharness/test/test_base_log.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import shutil import unittest diff --git a/testing/mozharness/test/test_base_parallel.py b/testing/mozharness/test/test_base_parallel.py index 35923cbaea18..a8f15a4773df 100644 --- a/testing/mozharness/test/test_base_parallel.py +++ b/testing/mozharness/test/test_base_parallel.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import unittest from mozharness.base.parallel import ChunkingMixin diff --git a/testing/mozharness/test/test_base_python.py b/testing/mozharness/test/test_base_python.py index c05f704ef677..747964431458 100644 --- a/testing/mozharness/test/test_base_python.py +++ b/testing/mozharness/test/test_base_python.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import unittest diff --git a/testing/mozharness/test/test_base_script.py b/testing/mozharness/test/test_base_script.py index bb4ee3cd39d2..ff6163ff46de 100644 --- a/testing/mozharness/test/test_base_script.py +++ b/testing/mozharness/test/test_base_script.py @@ -1,4 +1,4 @@ -from __future__ import print_function +from __future__ import absolute_import, print_function import gc import mock diff --git a/testing/mozharness/test/test_base_vcs_mercurial.py b/testing/mozharness/test/test_base_vcs_mercurial.py index d99069148d24..209b8139532c 100644 --- a/testing/mozharness/test/test_base_vcs_mercurial.py +++ b/testing/mozharness/test/test_base_vcs_mercurial.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import platform import shutil diff --git a/testing/mozharness/test/test_l10n_locales.py b/testing/mozharness/test/test_l10n_locales.py index 6b944d54d976..7b772329a0ae 100644 --- a/testing/mozharness/test/test_l10n_locales.py +++ b/testing/mozharness/test/test_l10n_locales.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import shutil import unittest diff --git a/testing/mozharness/test/test_mozilla_automation.py b/testing/mozharness/test/test_mozilla_automation.py index 618fdf667232..97b2ede27c41 100644 --- a/testing/mozharness/test/test_mozilla_automation.py +++ b/testing/mozharness/test/test_mozilla_automation.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import gc import unittest diff --git a/testing/mozharness/test/test_mozilla_building_buildbase.py b/testing/mozharness/test/test_mozilla_building_buildbase.py index 937a5d5add72..8af2b3b53e5a 100644 --- a/testing/mozharness/test/test_mozilla_building_buildbase.py +++ b/testing/mozharness/test/test_mozilla_building_buildbase.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import unittest from mozharness.base.log import LogMixin diff --git a/testing/mozharness/test/test_mozilla_merkle.py b/testing/mozharness/test/test_mozilla_merkle.py index 226499142f9f..76389b709dcd 100644 --- a/testing/mozharness/test/test_mozilla_merkle.py +++ b/testing/mozharness/test/test_mozilla_merkle.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import codecs import hashlib import random diff --git a/testing/mozharness/test/test_mozilla_structured.py b/testing/mozharness/test/test_mozilla_structured.py index 8946e3c879aa..1f901e7d0abd 100644 --- a/testing/mozharness/test/test_mozilla_structured.py +++ b/testing/mozharness/test/test_mozilla_structured.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import unittest from mozharness.mozilla.structuredlog import StructuredOutputParser from mozharness.base.log import INFO, WARNING diff --git a/testing/performance/hooks.py b/testing/performance/hooks.py index 6dd2b4678401..4c92d383048a 100644 --- a/testing/performance/hooks.py +++ b/testing/performance/hooks.py @@ -1,6 +1,7 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import import os from mozperftest.test.browsertime import add_options, add_option diff --git a/testing/performance/hooks_android_main.py b/testing/performance/hooks_android_main.py index 392d5ee2a41d..ef9d4cae91e0 100644 --- a/testing/performance/hooks_android_main.py +++ b/testing/performance/hooks_android_main.py @@ -1,6 +1,7 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import from mozperftest.test.browsertime import add_options from mozperftest.test.browsertime.runner import NodeException diff --git a/testing/performance/hooks_android_view.py b/testing/performance/hooks_android_view.py index 86b4909c8b00..2332749198c9 100644 --- a/testing/performance/hooks_android_view.py +++ b/testing/performance/hooks_android_view.py @@ -1,6 +1,8 @@ # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. +from __future__ import absolute_import + import json import tempfile import time diff --git a/testing/raptor/test/test_print_tests.py b/testing/raptor/test/test_print_tests.py index 739d3b0d6c52..e1539086fda3 100644 --- a/testing/raptor/test/test_print_tests.py +++ b/testing/raptor/test/test_print_tests.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import import os import mozunit diff --git a/testing/tools/iceserver/iceserver.py b/testing/tools/iceserver/iceserver.py index 7ef6e19d55f4..f7cd54c88d16 100644 --- a/testing/tools/iceserver/iceserver.py +++ b/testing/tools/iceserver/iceserver.py @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function +from __future__ import absolute_import, print_function import ipaddr import socket import hmac diff --git a/testing/tools/mach_test_package_bootstrap.py b/testing/tools/mach_test_package_bootstrap.py index 50881cd8fe80..67c243747aed 100644 --- a/testing/tools/mach_test_package_bootstrap.py +++ b/testing/tools/mach_test_package_bootstrap.py @@ -2,7 +2,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function, unicode_literals +from __future__ import absolute_import, print_function, unicode_literals import json import os diff --git a/testing/tools/websocketprocessbridge/websocketprocessbridge.py b/testing/tools/websocketprocessbridge/websocketprocessbridge.py index 504d7d2cdcca..7a84fd825499 100644 --- a/testing/tools/websocketprocessbridge/websocketprocessbridge.py +++ b/testing/tools/websocketprocessbridge/websocketprocessbridge.py @@ -3,7 +3,7 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import print_function +from __future__ import absolute_import, print_function from twisted.internet import protocol, reactor from twisted.internet.task import LoopingCall