diff --git a/python/gdbpp/gdbpp/__init__.py b/python/gdbpp/gdbpp/__init__.py index b2c7d2de44ea..7a7681aa6de3 100644 --- a/python/gdbpp/gdbpp/__init__.py +++ b/python/gdbpp/gdbpp/__init__.py @@ -4,8 +4,6 @@ # 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 gdb import gdb.printing diff --git a/python/gdbpp/gdbpp/enumset.py b/python/gdbpp/gdbpp/enumset.py index 1d719de311b1..6023364eb9e0 100644 --- a/python/gdbpp/gdbpp/enumset.py +++ b/python/gdbpp/gdbpp/enumset.py @@ -4,8 +4,6 @@ # 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 gdb from gdbpp import GeckoPrettyPrinter diff --git a/python/gdbpp/gdbpp/linkedlist.py b/python/gdbpp/gdbpp/linkedlist.py index ffd98cad3db6..1ba25a1cf0a1 100644 --- a/python/gdbpp/gdbpp/linkedlist.py +++ b/python/gdbpp/gdbpp/linkedlist.py @@ -4,8 +4,6 @@ # 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 gdbpp import GeckoPrettyPrinter diff --git a/python/gdbpp/gdbpp/owningthread.py b/python/gdbpp/gdbpp/owningthread.py index bc0765bb3c40..cdf0b30c82b3 100644 --- a/python/gdbpp/gdbpp/owningthread.py +++ b/python/gdbpp/gdbpp/owningthread.py @@ -4,8 +4,6 @@ # 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 gdb from gdbpp import GeckoPrettyPrinter diff --git a/python/gdbpp/gdbpp/smartptr.py b/python/gdbpp/gdbpp/smartptr.py index 8df222f784a8..ecc35bee2884 100644 --- a/python/gdbpp/gdbpp/smartptr.py +++ b/python/gdbpp/gdbpp/smartptr.py @@ -4,8 +4,6 @@ # 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 gdbpp import GeckoPrettyPrinter diff --git a/python/gdbpp/gdbpp/string.py b/python/gdbpp/gdbpp/string.py index 9d0079936622..b5722f2c62da 100644 --- a/python/gdbpp/gdbpp/string.py +++ b/python/gdbpp/gdbpp/string.py @@ -4,8 +4,6 @@ # 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 gdbpp import GeckoPrettyPrinter diff --git a/python/gdbpp/gdbpp/tarray.py b/python/gdbpp/gdbpp/tarray.py index ae9f3d88613b..a5c82253b9cb 100644 --- a/python/gdbpp/gdbpp/tarray.py +++ b/python/gdbpp/gdbpp/tarray.py @@ -4,8 +4,6 @@ # 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 gdbpp import GeckoPrettyPrinter diff --git a/python/gdbpp/gdbpp/thashtable.py b/python/gdbpp/gdbpp/thashtable.py index d0171632bb25..5775f2994727 100644 --- a/python/gdbpp/gdbpp/thashtable.py +++ b/python/gdbpp/gdbpp/thashtable.py @@ -4,8 +4,6 @@ # 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 gdb from gdbpp import GeckoPrettyPrinter diff --git a/python/l10n/fluent_migrations/bug_1347955_aboutLogging.py b/python/l10n/fluent_migrations/bug_1347955_aboutLogging.py index 81774056c8af..a10aa1ae8df5 100644 --- a/python/l10n/fluent_migrations/bug_1347955_aboutLogging.py +++ b/python/l10n/fluent_migrations/bug_1347955_aboutLogging.py @@ -4,7 +4,6 @@ # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import from fluent.migrate.helpers import transforms_from from fluent.migrate import COPY_PATTERN diff --git a/python/l10n/fluent_migrations/bug_1552333_aboutCertError.py b/python/l10n/fluent_migrations/bug_1552333_aboutCertError.py index eb395d44a939..5c8300e01fe9 100644 --- a/python/l10n/fluent_migrations/bug_1552333_aboutCertError.py +++ b/python/l10n/fluent_migrations/bug_1552333_aboutCertError.py @@ -3,7 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import import fluent.syntax.ast as FTL from fluent.migrate.helpers import transforms_from from fluent.migrate.helpers import VARIABLE_REFERENCE diff --git a/python/l10n/fluent_migrations/bug_1577257_profiler_title.py b/python/l10n/fluent_migrations/bug_1577257_profiler_title.py index ae3330e686f7..3eb36b738339 100644 --- a/python/l10n/fluent_migrations/bug_1577257_profiler_title.py +++ b/python/l10n/fluent_migrations/bug_1577257_profiler_title.py @@ -3,7 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import from fluent.migrate.helpers import transforms_from from fluent.migrate import COPY_PATTERN @@ -20,4 +19,4 @@ profiler-popup-header-text = """, from_path="browser/browser/appmenu.ftl", ), - ) + ) diff --git a/python/l10n/fluent_migrations/bug_1635548_browser_context.py b/python/l10n/fluent_migrations/bug_1635548_browser_context.py index 68248cd38df3..33bd0efc9555 100644 --- a/python/l10n/fluent_migrations/bug_1635548_browser_context.py +++ b/python/l10n/fluent_migrations/bug_1635548_browser_context.py @@ -3,7 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import import fluent.syntax.ast as FTL from fluent.migrate.helpers import transforms_from, VARIABLE_REFERENCE from fluent.migrate import REPLACE, COPY diff --git a/python/l10n/fluent_migrations/bug_1786186_mobile_aboutConfig.py b/python/l10n/fluent_migrations/bug_1786186_mobile_aboutConfig.py index ef42a2618cbf..99c6673f9207 100644 --- a/python/l10n/fluent_migrations/bug_1786186_mobile_aboutConfig.py +++ b/python/l10n/fluent_migrations/bug_1786186_mobile_aboutConfig.py @@ -3,7 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import import fluent.syntax.ast as FTL from fluent.migrate.helpers import transforms_from from fluent.migrate.transforms import COPY diff --git a/python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py b/python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py index 6dbb37a47c38..0d6d839acd05 100644 --- a/python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py +++ b/python/l10n/fluent_migrations/bug_1790387_featureCallout_a11y.py @@ -3,8 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import - from fluent.migrate import COPY_PATTERN from fluent.migrate.helpers import transforms_from diff --git a/python/l10n/fluent_migrations/bug_1801915_confirmationHints.py b/python/l10n/fluent_migrations/bug_1801915_confirmationHints.py index cd3353d35966..69b9cff67d41 100644 --- a/python/l10n/fluent_migrations/bug_1801915_confirmationHints.py +++ b/python/l10n/fluent_migrations/bug_1801915_confirmationHints.py @@ -3,7 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import import fluent.syntax.ast as FTL from fluent.migrate.helpers import transforms_from from fluent.migrate.helpers import VARIABLE_REFERENCE diff --git a/python/l10n/test_fluent_migrations/fmt.py b/python/l10n/test_fluent_migrations/fmt.py index 4dd1910d699f..150a942e783f 100644 --- a/python/l10n/test_fluent_migrations/fmt.py +++ b/python/l10n/test_fluent_migrations/fmt.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, print_function - import codecs import logging import os diff --git a/python/lldbutils/lldbutils/__init__.py b/python/lldbutils/lldbutils/__init__.py index 9059a6299577..e1263153df87 100644 --- a/python/lldbutils/lldbutils/__init__.py +++ b/python/lldbutils/lldbutils/__init__.py @@ -1,8 +1,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import - import lldb __all__ = ["content", "general", "gfx", "layout", "utils"] diff --git a/python/lldbutils/lldbutils/content.py b/python/lldbutils/lldbutils/content.py index 68f208fdd9d8..8f2bf22ccdc8 100644 --- a/python/lldbutils/lldbutils/content.py +++ b/python/lldbutils/lldbutils/content.py @@ -1,8 +1,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import - from lldbutils import utils diff --git a/python/lldbutils/lldbutils/general.py b/python/lldbutils/lldbutils/general.py index 2177014545f9..577b3847fadf 100644 --- a/python/lldbutils/lldbutils/general.py +++ b/python/lldbutils/lldbutils/general.py @@ -1,8 +1,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import, print_function - import lldb from lldbutils import utils diff --git a/python/lldbutils/lldbutils/gfx.py b/python/lldbutils/lldbutils/gfx.py index 5f04954e3b7b..7622dd4f9c47 100644 --- a/python/lldbutils/lldbutils/gfx.py +++ b/python/lldbutils/lldbutils/gfx.py @@ -1,8 +1,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import - def summarize_nscolor(valobj, internal_dict): colors = { diff --git a/python/lldbutils/lldbutils/layout.py b/python/lldbutils/lldbutils/layout.py index ba44ea158f51..c70216bff523 100644 --- a/python/lldbutils/lldbutils/layout.py +++ b/python/lldbutils/lldbutils/layout.py @@ -1,8 +1,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import - def frametree(debugger, command, result, dict): """Dumps the frame tree containing the given nsIFrame*.""" diff --git a/python/mach/mach/base.py b/python/mach/mach/base.py index 192647cbb016..fac17e9b03e2 100644 --- a/python/mach/mach/base.py +++ b/python/mach/mach/base.py @@ -2,8 +2,6 @@ # 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, unicode_literals - class CommandContext(object): """Holds run-time state so it can easily be passed to command providers.""" diff --git a/python/mach/mach/commands/commandinfo.py b/python/mach/mach/commands/commandinfo.py index f78195362b33..12c4b240ea15 100644 --- a/python/mach/mach/commands/commandinfo.py +++ b/python/mach/mach/commands/commandinfo.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import re import subprocess diff --git a/python/mach/mach/commands/settings.py b/python/mach/mach/commands/settings.py index afe6f05fbbc0..474790cd426a 100644 --- a/python/mach/mach/commands/settings.py +++ b/python/mach/mach/commands/settings.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - from textwrap import TextWrapper from mach.config import TYPE_CLASSES diff --git a/python/mach/mach/config.py b/python/mach/mach/config.py index f0152351a036..5428a9edad28 100644 --- a/python/mach/mach/config.py +++ b/python/mach/mach/config.py @@ -14,8 +14,6 @@ ConfigProvider classes are associated with ConfigSettings and define what settings are available. """ -from __future__ import absolute_import, unicode_literals - import collections import collections.abc import sys diff --git a/python/mach/mach/decorators.py b/python/mach/mach/decorators.py index 396222833896..4ad0e2c19fff 100644 --- a/python/mach/mach/decorators.py +++ b/python/mach/mach/decorators.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import argparse import collections import collections.abc diff --git a/python/mach/mach/dispatcher.py b/python/mach/mach/dispatcher.py index bee60d38be60..95287eac408c 100644 --- a/python/mach/mach/dispatcher.py +++ b/python/mach/mach/dispatcher.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import difflib import shlex diff --git a/python/mach/mach/logging.py b/python/mach/mach/logging.py index ba43ee53dc89..7af1c687718e 100644 --- a/python/mach/mach/logging.py +++ b/python/mach/mach/logging.py @@ -6,8 +6,6 @@ # support for a structured logging framework built on top of Python's built-in # logging framework. -from __future__ import absolute_import, unicode_literals - import codecs import json import logging diff --git a/python/mach/mach/main.py b/python/mach/mach/main.py index 8eff7c7707d0..80bda5ca056b 100644 --- a/python/mach/mach/main.py +++ b/python/mach/mach/main.py @@ -5,8 +5,6 @@ # This module provides functionality for the command-line build tool # (mach). It is packaged as a module because everything is a library. -from __future__ import absolute_import, print_function, unicode_literals - import argparse import codecs import errno diff --git a/python/mach/mach/mixin/logging.py b/python/mach/mach/mixin/logging.py index a7d36754a4c7..f40bd64356b8 100644 --- a/python/mach/mach/mixin/logging.py +++ b/python/mach/mach/mixin/logging.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import logging diff --git a/python/mach/mach/mixin/process.py b/python/mach/mach/mixin/process.py index 5f90fb86f75b..afe95380528d 100644 --- a/python/mach/mach/mixin/process.py +++ b/python/mach/mach/mixin/process.py @@ -4,8 +4,6 @@ # This module provides mixins to perform process execution. -from __future__ import absolute_import, unicode_literals - import logging import os import signal diff --git a/python/mach/mach/registrar.py b/python/mach/mach/registrar.py index 900e3783ff51..c036c01f56af 100644 --- a/python/mach/mach/registrar.py +++ b/python/mach/mach/registrar.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import time from cProfile import Profile from pathlib import Path diff --git a/python/mach/mach/sentry.py b/python/mach/mach/sentry.py index 0c003e3248cf..5008f8a40cc8 100644 --- a/python/mach/mach/sentry.py +++ b/python/mach/mach/sentry.py @@ -2,8 +2,6 @@ # 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 abc import re from pathlib import Path diff --git a/python/mach/mach/site.py b/python/mach/mach/site.py index fc5dc11e5344..55f3d5fc1395 100644 --- a/python/mach/mach/site.py +++ b/python/mach/mach/site.py @@ -5,8 +5,6 @@ # This file contains code for managing the Python import scope for Mach. This # generally involves populating a Python virtualenv. -from __future__ import absolute_import, print_function, unicode_literals - import ast import enum import functools diff --git a/python/mach/mach/telemetry.py b/python/mach/mach/telemetry.py index a570b1a08393..233556550d63 100644 --- a/python/mach/mach/telemetry.py +++ b/python/mach/mach/telemetry.py @@ -2,8 +2,6 @@ # 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, print_function - import json import os import subprocess diff --git a/python/mach/mach/telemetry_interface.py b/python/mach/mach/telemetry_interface.py index 52f4ce14bc32..3ed8ce5674c6 100644 --- a/python/mach/mach/telemetry_interface.py +++ b/python/mach/mach/telemetry_interface.py @@ -2,8 +2,6 @@ # 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, print_function - import sys from pathlib import Path from typing import Union diff --git a/python/mach/mach/terminal.py b/python/mach/mach/terminal.py index 01f9f43e8a7a..a0c8d0a6ed28 100644 --- a/python/mach/mach/terminal.py +++ b/python/mach/mach/terminal.py @@ -8,8 +8,6 @@ All the terminal interaction code is consolidated so the complexity can be in one place, away from code that is commonly looked at. """ -from __future__ import absolute_import, print_function, unicode_literals - import logging import sys diff --git a/python/mach/mach/test/conftest.py b/python/mach/mach/test/conftest.py index b78ac0f0cb4e..78129acb5859 100644 --- a/python/mach/mach/test/conftest.py +++ b/python/mach/mach/test/conftest.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import sys import unittest from collections.abc import Iterable diff --git a/python/mach/mach/test/invoke_mach_command.py b/python/mach/mach/test/invoke_mach_command.py index 0eb5a99c1854..1efa102ef551 100644 --- a/python/mach/mach/test/invoke_mach_command.py +++ b/python/mach/mach/test/invoke_mach_command.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import subprocess import sys diff --git a/python/mach/mach/test/providers/basic.py b/python/mach/mach/test/providers/basic.py index 37670ea5ec46..26cdfdf58829 100644 --- a/python/mach/mach/test/providers/basic.py +++ b/python/mach/mach/test/providers/basic.py @@ -1,8 +1,6 @@ # 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, unicode_literals - from mach.decorators import Command, CommandArgument diff --git a/python/mach/mach/test/providers/commands.py b/python/mach/mach/test/providers/commands.py index b16781808762..6b8210c51362 100644 --- a/python/mach/mach/test/providers/commands.py +++ b/python/mach/mach/test/providers/commands.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from functools import partial from mach.decorators import Command, CommandArgument diff --git a/python/mach/mach/test/providers/conditions.py b/python/mach/mach/test/providers/conditions.py index 16bfc4aaab1f..db2f3f8123ea 100644 --- a/python/mach/mach/test/providers/conditions.py +++ b/python/mach/mach/test/providers/conditions.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from mach.decorators import Command diff --git a/python/mach/mach/test/providers/conditions_invalid.py b/python/mach/mach/test/providers/conditions_invalid.py index 4294199422eb..228c56f0bf8e 100644 --- a/python/mach/mach/test/providers/conditions_invalid.py +++ b/python/mach/mach/test/providers/conditions_invalid.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from mach.decorators import Command diff --git a/python/mach/mach/test/providers/throw.py b/python/mach/mach/test/providers/throw.py index fa78c0dc40e7..9ddc7653c089 100644 --- a/python/mach/mach/test/providers/throw.py +++ b/python/mach/mach/test/providers/throw.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from mach.decorators import Command, CommandArgument from mach.test.providers import throw2 diff --git a/python/mach/mach/test/providers/throw2.py b/python/mach/mach/test/providers/throw2.py index 766b6bbc652d..9ff7f2798ee4 100644 --- a/python/mach/mach/test/providers/throw2.py +++ b/python/mach/mach/test/providers/throw2.py @@ -6,8 +6,6 @@ # exceptions that occur in mach command modules themselves and in the things # they call. -from __future__ import absolute_import - def throw_deep(message): return throw_real(message) diff --git a/python/mach/mach/test/test_commands.py b/python/mach/mach/test/test_commands.py index d7e0a9d34d32..38191b089838 100644 --- a/python/mach/mach/test/test_commands.py +++ b/python/mach/mach/test/test_commands.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import sys from pathlib import Path diff --git a/python/mach/mach/test/test_conditions.py b/python/mach/mach/test/test_conditions.py index e5adcf202ade..5775790e692a 100644 --- a/python/mach/mach/test/test_conditions.py +++ b/python/mach/mach/test/test_conditions.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from pathlib import Path from buildconfig import topsrcdir diff --git a/python/mach/mach/test/test_config.py b/python/mach/mach/test/test_config.py index 8d2c8c6048cb..25b75c8685ce 100644 --- a/python/mach/mach/test/test_config.py +++ b/python/mach/mach/test/test_config.py @@ -1,8 +1,6 @@ # 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, unicode_literals - import sys import unittest from pathlib import Path diff --git a/python/mach/mach/test/test_decorators.py b/python/mach/mach/test/test_decorators.py index aa9b4c5c5987..f33b6e7d8fbe 100644 --- a/python/mach/mach/test/test_decorators.py +++ b/python/mach/mach/test/test_decorators.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from pathlib import Path from unittest import mock from unittest.mock import Mock, patch diff --git a/python/mach/mach/test/test_dispatcher.py b/python/mach/mach/test/test_dispatcher.py index 946d76d778c1..85c2e9a847d8 100644 --- a/python/mach/mach/test/test_dispatcher.py +++ b/python/mach/mach/test/test_dispatcher.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import unittest from io import StringIO from pathlib import Path diff --git a/python/mach/mach/test/test_entry_point.py b/python/mach/mach/test/test_entry_point.py index 4d81dab9dc5a..1129eba476c9 100644 --- a/python/mach/mach/test/test_entry_point.py +++ b/python/mach/mach/test/test_entry_point.py @@ -1,8 +1,6 @@ # 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, unicode_literals - import imp import sys from pathlib import Path diff --git a/python/mach/mach/test/test_error_output.py b/python/mach/mach/test/test_error_output.py index 5e900ae46a49..12eab658560d 100644 --- a/python/mach/mach/test/test_error_output.py +++ b/python/mach/mach/test/test_error_output.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from pathlib import Path from mozunit import main diff --git a/python/mach/mach/test/test_logger.py b/python/mach/mach/test/test_logger.py index e95c221cc8c5..643d890de8c3 100644 --- a/python/mach/mach/test/test_logger.py +++ b/python/mach/mach/test/test_logger.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import logging import time import unittest diff --git a/python/mach/mach/test/test_mach.py b/python/mach/mach/test/test_mach.py index 852f90838c06..38379d1b49f3 100644 --- a/python/mach/mach/test/test_mach.py +++ b/python/mach/mach/test/test_mach.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import os from mozunit import main diff --git a/python/mach/mach/test/test_site.py b/python/mach/mach/test/test_site.py index 29879a004d3e..df3a5acd739e 100644 --- a/python/mach/mach/test/test_site.py +++ b/python/mach/mach/test/test_site.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import os from unittest import mock diff --git a/python/mach/mach/test/test_site_activation.py b/python/mach/mach/test/test_site_activation.py index 08cf2950fc24..e034a27b7666 100644 --- a/python/mach/mach/test/test_site_activation.py +++ b/python/mach/mach/test/test_site_activation.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import ast import functools import os diff --git a/python/mach/mach/test/zero_microseconds.py b/python/mach/mach/test/zero_microseconds.py index 1854747bb6e4..b1d523071f4c 100644 --- a/python/mach/mach/test/zero_microseconds.py +++ b/python/mach/mach/test/zero_microseconds.py @@ -1,7 +1,5 @@ # This code is loaded via `mach python --exec-file`, so it runs in the scope of # the `mach python` command. -from __future__ import absolute_import - old = self._mach_context.post_dispatch_handler # noqa: F821 diff --git a/python/mach/mach/util.py b/python/mach/mach/util.py index aec72ef1dac2..4ed303cf3b39 100644 --- a/python/mach/mach/util.py +++ b/python/mach/mach/util.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import hashlib import os import sys diff --git a/python/mach/setup.py b/python/mach/setup.py index 55cf920bb527..1dce137591c0 100644 --- a/python/mach/setup.py +++ b/python/mach/setup.py @@ -2,8 +2,6 @@ # 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 - try: from setuptools import setup except ImportError: diff --git a/python/mach_commands.py b/python/mach_commands.py index 558a8e82bafa..d4f1f67efed6 100644 --- a/python/mach_commands.py +++ b/python/mach_commands.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import logging import os diff --git a/python/mozboot/mozboot/test/test_mozconfig.py b/python/mozboot/mozboot/test/test_mozconfig.py index 5958011e3369..b7375e8529c0 100644 --- a/python/mozboot/mozboot/test/test_mozconfig.py +++ b/python/mozboot/mozboot/test/test_mozconfig.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import sys import unittest diff --git a/python/mozboot/setup.py b/python/mozboot/setup.py index df7000d85a6b..234650dc8a51 100644 --- a/python/mozboot/setup.py +++ b/python/mozboot/setup.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - from distutils.core import setup VERSION = "0.1" diff --git a/python/mozbuild/mozbuild/action/buildlist.py b/python/mozbuild/mozbuild/action/buildlist.py index f9910a024a72..6372b4c14b10 100644 --- a/python/mozbuild/mozbuild/action/buildlist.py +++ b/python/mozbuild/mozbuild/action/buildlist.py @@ -7,8 +7,6 @@ if the entry does not already exist. Usage: buildlist.py [ ...] """ -from __future__ import absolute_import, print_function, unicode_literals - import io import os import sys diff --git a/python/mozbuild/mozbuild/action/check_binary.py b/python/mozbuild/mozbuild/action/check_binary.py index c2e334913c90..baf39860de52 100644 --- a/python/mozbuild/mozbuild/action/check_binary.py +++ b/python/mozbuild/mozbuild/action/check_binary.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os import re diff --git a/python/mozbuild/mozbuild/action/download_wpt_manifest.py b/python/mozbuild/mozbuild/action/download_wpt_manifest.py index a91fb950191c..84f4a15d142d 100644 --- a/python/mozbuild/mozbuild/action/download_wpt_manifest.py +++ b/python/mozbuild/mozbuild/action/download_wpt_manifest.py @@ -4,8 +4,6 @@ # This action is used to generate the wpt manifest -from __future__ import absolute_import, print_function - import sys import buildconfig diff --git a/python/mozbuild/mozbuild/action/dump_env.py b/python/mozbuild/mozbuild/action/dump_env.py index 8bcfa7eb5aac..ec178700eb47 100644 --- a/python/mozbuild/mozbuild/action/dump_env.py +++ b/python/mozbuild/mozbuild/action/dump_env.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - # We invoke a Python program to dump our environment in order to get # native paths printed on Windows so that these paths can be incorporated # into Python configure's environment. diff --git a/python/mozbuild/mozbuild/action/dumpsymbols.py b/python/mozbuild/mozbuild/action/dumpsymbols.py index 8000805220f1..0af2c1c4e576 100644 --- a/python/mozbuild/mozbuild/action/dumpsymbols.py +++ b/python/mozbuild/mozbuild/action/dumpsymbols.py @@ -2,8 +2,6 @@ # 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, print_function - import argparse import os import shutil diff --git a/python/mozbuild/mozbuild/action/exe_7z_archive.py b/python/mozbuild/mozbuild/action/exe_7z_archive.py index 90ef4cbc11b4..b0d35be2bf88 100644 --- a/python/mozbuild/mozbuild/action/exe_7z_archive.py +++ b/python/mozbuild/mozbuild/action/exe_7z_archive.py @@ -2,8 +2,6 @@ # 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, print_function - import os import shutil import subprocess diff --git a/python/mozbuild/mozbuild/action/fat_aar.py b/python/mozbuild/mozbuild/action/fat_aar.py index 7d7026b8b7fb..d17d4696a0b2 100644 --- a/python/mozbuild/mozbuild/action/fat_aar.py +++ b/python/mozbuild/mozbuild/action/fat_aar.py @@ -7,8 +7,6 @@ Fetch and unpack architecture-specific Maven zips, verify cross-architecture compatibility, and ready inputs to an Android multi-architecture fat AAR build. """ -from __future__ import absolute_import, print_function, unicode_literals - import argparse import sys from collections import OrderedDict, defaultdict diff --git a/python/mozbuild/mozbuild/action/file_generate.py b/python/mozbuild/mozbuild/action/file_generate.py index ce91f0b08744..98dec4e3599c 100644 --- a/python/mozbuild/mozbuild/action/file_generate.py +++ b/python/mozbuild/mozbuild/action/file_generate.py @@ -6,8 +6,6 @@ # the arguments that can be used to generate the output file, call the # script's |main| method with appropriate arguments. -from __future__ import absolute_import, print_function - import argparse import importlib.util import os diff --git a/python/mozbuild/mozbuild/action/generate_symbols_file.py b/python/mozbuild/mozbuild/action/generate_symbols_file.py index c326ac1b2651..955a676c08f8 100644 --- a/python/mozbuild/mozbuild/action/generate_symbols_file.py +++ b/python/mozbuild/mozbuild/action/generate_symbols_file.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os from io import StringIO diff --git a/python/mozbuild/mozbuild/action/install.py b/python/mozbuild/mozbuild/action/install.py index 14e599ba75fb..02f0f2694a10 100644 --- a/python/mozbuild/mozbuild/action/install.py +++ b/python/mozbuild/mozbuild/action/install.py @@ -5,8 +5,6 @@ # A simple script to invoke mozinstall from the command line without depending # on a build config. -from __future__ import absolute_import, print_function - import sys import mozinstall diff --git a/python/mozbuild/mozbuild/action/jar_maker.py b/python/mozbuild/mozbuild/action/jar_maker.py index c530240ede0d..a244b66a52c1 100644 --- a/python/mozbuild/mozbuild/action/jar_maker.py +++ b/python/mozbuild/mozbuild/action/jar_maker.py @@ -2,8 +2,6 @@ # 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, print_function - import sys import mozbuild.jar diff --git a/python/mozbuild/mozbuild/action/l10n_merge.py b/python/mozbuild/mozbuild/action/l10n_merge.py index e97d3dc286e1..1a04d6010775 100644 --- a/python/mozbuild/mozbuild/action/l10n_merge.py +++ b/python/mozbuild/mozbuild/action/l10n_merge.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os import shutil diff --git a/python/mozbuild/mozbuild/action/langpack_manifest.py b/python/mozbuild/mozbuild/action/langpack_manifest.py index 6818a1f3daa6..598f03ebe7b1 100644 --- a/python/mozbuild/mozbuild/action/langpack_manifest.py +++ b/python/mozbuild/mozbuild/action/langpack_manifest.py @@ -11,8 +11,6 @@ # and from other information in the `xpi-stage` directory. ### -from __future__ import absolute_import, print_function, unicode_literals - import argparse import datetime import io diff --git a/python/mozbuild/mozbuild/action/make_unzip.py b/python/mozbuild/mozbuild/action/make_unzip.py index 2151fff9092e..e4d2902f539f 100644 --- a/python/mozbuild/mozbuild/action/make_unzip.py +++ b/python/mozbuild/mozbuild/action/make_unzip.py @@ -2,8 +2,6 @@ # 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, print_function - import subprocess import sys diff --git a/python/mozbuild/mozbuild/action/node.py b/python/mozbuild/mozbuild/action/node.py index 873e85da60c4..fca0745b809a 100644 --- a/python/mozbuild/mozbuild/action/node.py +++ b/python/mozbuild/mozbuild/action/node.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import pipes import subprocess import sys diff --git a/python/mozbuild/mozbuild/action/package_generated_sources.py b/python/mozbuild/mozbuild/action/package_generated_sources.py index c99b6cbe34fd..d87a75fc6f7e 100644 --- a/python/mozbuild/mozbuild/action/package_generated_sources.py +++ b/python/mozbuild/mozbuild/action/package_generated_sources.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import sys diff --git a/python/mozbuild/mozbuild/action/preprocessor.py b/python/mozbuild/mozbuild/action/preprocessor.py index 3d27fa7e2ab8..c59a05a90b67 100644 --- a/python/mozbuild/mozbuild/action/preprocessor.py +++ b/python/mozbuild/mozbuild/action/preprocessor.py @@ -2,8 +2,6 @@ # 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, print_function - import sys from mozbuild.action.util import log_build_task diff --git a/python/mozbuild/mozbuild/action/process_define_files.py b/python/mozbuild/mozbuild/action/process_define_files.py index 184bdffa0a52..6b00cd36cd4d 100644 --- a/python/mozbuild/mozbuild/action/process_define_files.py +++ b/python/mozbuild/mozbuild/action/process_define_files.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os import re diff --git a/python/mozbuild/mozbuild/action/process_install_manifest.py b/python/mozbuild/mozbuild/action/process_install_manifest.py index da636b2a6217..98c5f4cfa738 100644 --- a/python/mozbuild/mozbuild/action/process_install_manifest.py +++ b/python/mozbuild/mozbuild/action/process_install_manifest.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os import sys diff --git a/python/mozbuild/mozbuild/action/symbols_archive.py b/python/mozbuild/mozbuild/action/symbols_archive.py index 092760fae4b5..75ecb71d1726 100644 --- a/python/mozbuild/mozbuild/action/symbols_archive.py +++ b/python/mozbuild/mozbuild/action/symbols_archive.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os import sys diff --git a/python/mozbuild/mozbuild/action/test_archive.py b/python/mozbuild/mozbuild/action/test_archive.py index 73b1aefb5a27..cd486ab59458 100644 --- a/python/mozbuild/mozbuild/action/test_archive.py +++ b/python/mozbuild/mozbuild/action/test_archive.py @@ -8,8 +8,6 @@ # It is defined inline because this was easiest to make test archive # generation faster. -from __future__ import absolute_import, print_function, unicode_literals - import argparse import itertools import os diff --git a/python/mozbuild/mozbuild/action/tooltool.py b/python/mozbuild/mozbuild/action/tooltool.py index f5edf8e6c7c1..09ac76807fe9 100755 --- a/python/mozbuild/mozbuild/action/tooltool.py +++ b/python/mozbuild/mozbuild/action/tooltool.py @@ -22,8 +22,6 @@ # in which the manifest file resides and it should be called # 'manifest.tt' -from __future__ import absolute_import, print_function - import base64 import calendar import hashlib diff --git a/python/mozbuild/mozbuild/action/util.py b/python/mozbuild/mozbuild/action/util.py index f11e61bc7c0f..fe93b1ae2c98 100644 --- a/python/mozbuild/mozbuild/action/util.py +++ b/python/mozbuild/mozbuild/action/util.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import json import sys import time diff --git a/python/mozbuild/mozbuild/action/webidl.py b/python/mozbuild/mozbuild/action/webidl.py index e101c440ae50..81c2c2a5071e 100644 --- a/python/mozbuild/mozbuild/action/webidl.py +++ b/python/mozbuild/mozbuild/action/webidl.py @@ -2,8 +2,6 @@ # 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, print_function - import sys from mozwebidlcodegen import create_build_system_manager diff --git a/python/mozbuild/mozbuild/action/wrap_rustc.py b/python/mozbuild/mozbuild/action/wrap_rustc.py index cbdbe1e425a3..d865438c47a0 100644 --- a/python/mozbuild/mozbuild/action/wrap_rustc.py +++ b/python/mozbuild/mozbuild/action/wrap_rustc.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os import subprocess diff --git a/python/mozbuild/mozbuild/action/xpccheck.py b/python/mozbuild/mozbuild/action/xpccheck.py index dc2f49b62464..4b59577cce96 100644 --- a/python/mozbuild/mozbuild/action/xpccheck.py +++ b/python/mozbuild/mozbuild/action/xpccheck.py @@ -8,8 +8,6 @@ corresponding .ini file. Usage: xpccheck.py [ ...] """ -from __future__ import absolute_import, print_function - import os import sys from glob import glob diff --git a/python/mozbuild/mozbuild/action/xpidl-process.py b/python/mozbuild/mozbuild/action/xpidl-process.py index 9460206566d1..99f2a83f5e5a 100755 --- a/python/mozbuild/mozbuild/action/xpidl-process.py +++ b/python/mozbuild/mozbuild/action/xpidl-process.py @@ -7,8 +7,6 @@ # input IDL file(s). It's purpose is to directly support the build # system. The API will change to meet the needs of the build system. -from __future__ import absolute_import, print_function - import argparse import os import sys diff --git a/python/mozbuild/mozbuild/action/zip.py b/python/mozbuild/mozbuild/action/zip.py index f3b6782f8108..e0dcbe020f10 100644 --- a/python/mozbuild/mozbuild/action/zip.py +++ b/python/mozbuild/mozbuild/action/zip.py @@ -5,8 +5,6 @@ # This script creates a zip file, but will also strip any binaries # it finds before adding them to the zip. -from __future__ import absolute_import, print_function - import argparse import sys diff --git a/python/mozbuild/mozbuild/analyze/hg.py b/python/mozbuild/mozbuild/analyze/hg.py index 781681d8d724..605ff6838eed 100644 --- a/python/mozbuild/mozbuild/analyze/hg.py +++ b/python/mozbuild/mozbuild/analyze/hg.py @@ -2,8 +2,6 @@ # 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, print_function - import bisect import gzip import json diff --git a/python/mozbuild/mozbuild/android_version_code.py b/python/mozbuild/mozbuild/android_version_code.py index 0140bc0608b7..aa13609a7a61 100644 --- a/python/mozbuild/mozbuild/android_version_code.py +++ b/python/mozbuild/mozbuild/android_version_code.py @@ -2,8 +2,6 @@ # 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, print_function - import argparse import math import sys diff --git a/python/mozbuild/mozbuild/artifact_builds.py b/python/mozbuild/mozbuild/artifact_builds.py index a21574b852df..a4d2a0bdd289 100644 --- a/python/mozbuild/mozbuild/artifact_builds.py +++ b/python/mozbuild/mozbuild/artifact_builds.py @@ -2,8 +2,6 @@ # 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, print_function - # The values correspond to entries at # https://tools.taskcluster.net/index/artifacts/#gecko.v2.mozilla-central.latest/gecko.v2.mozilla-central.latest JOB_CHOICES = { diff --git a/python/mozbuild/mozbuild/artifact_cache.py b/python/mozbuild/mozbuild/artifact_cache.py index 87d44945835c..2de721986cfd 100644 --- a/python/mozbuild/mozbuild/artifact_cache.py +++ b/python/mozbuild/mozbuild/artifact_cache.py @@ -21,8 +21,6 @@ A future need, perhaps. """ -from __future__ import absolute_import, print_function, unicode_literals - import binascii import hashlib import logging diff --git a/python/mozbuild/mozbuild/artifact_commands.py b/python/mozbuild/mozbuild/artifact_commands.py index 67c6ea4c39db..a481269da18d 100644 --- a/python/mozbuild/mozbuild/artifact_commands.py +++ b/python/mozbuild/mozbuild/artifact_commands.py @@ -2,8 +2,6 @@ # 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 argparse import hashlib import json diff --git a/python/mozbuild/mozbuild/artifacts.py b/python/mozbuild/mozbuild/artifacts.py index 01ec1470f9f6..c06c7785bb4b 100644 --- a/python/mozbuild/mozbuild/artifacts.py +++ b/python/mozbuild/mozbuild/artifacts.py @@ -32,8 +32,6 @@ consumers will need to arrange this themselves. """ -from __future__ import absolute_import, print_function, unicode_literals - import collections import functools import glob diff --git a/python/mozbuild/mozbuild/backend/__init__.py b/python/mozbuild/mozbuild/backend/__init__.py index 986fa030a1be..e7097eb6140a 100644 --- a/python/mozbuild/mozbuild/backend/__init__.py +++ b/python/mozbuild/mozbuild/backend/__init__.py @@ -2,8 +2,6 @@ # 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, print_function - backends = { "Clangd": "mozbuild.backend.clangd", "ChromeMap": "mozbuild.codecoverage.chrome_map", diff --git a/python/mozbuild/mozbuild/backend/base.py b/python/mozbuild/mozbuild/backend/base.py index ae7005298724..1d7b3bec1efd 100644 --- a/python/mozbuild/mozbuild/backend/base.py +++ b/python/mozbuild/mozbuild/backend/base.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import errno import io import itertools diff --git a/python/mozbuild/mozbuild/backend/cargo_build_defs.py b/python/mozbuild/mozbuild/backend/cargo_build_defs.py index 2b12001799a3..c60fd2abf69f 100644 --- a/python/mozbuild/mozbuild/backend/cargo_build_defs.py +++ b/python/mozbuild/mozbuild/backend/cargo_build_defs.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - cargo_extra_outputs = { "bindgen": ["tests.rs", "host-target.txt"], "cssparser": ["tokenizer.rs"], diff --git a/python/mozbuild/mozbuild/backend/clangd.py b/python/mozbuild/mozbuild/backend/clangd.py index 69c233886316..6ae0fa1e26c5 100644 --- a/python/mozbuild/mozbuild/backend/clangd.py +++ b/python/mozbuild/mozbuild/backend/clangd.py @@ -8,8 +8,6 @@ # an unified `compile_commands.json` but we generate a per file basis `command` in # `objdir/clangd/compile_commands.json` -from __future__ import absolute_import, print_function - import os import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/backend/common.py b/python/mozbuild/mozbuild/backend/common.py index 46a58043f7e5..f0dc7d4e4618 100644 --- a/python/mozbuild/mozbuild/backend/common.py +++ b/python/mozbuild/mozbuild/backend/common.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import itertools import json import os diff --git a/python/mozbuild/mozbuild/backend/configenvironment.py b/python/mozbuild/mozbuild/backend/configenvironment.py index 30ae2a2801b2..2f4f3baec9a3 100644 --- a/python/mozbuild/mozbuild/backend/configenvironment.py +++ b/python/mozbuild/mozbuild/backend/configenvironment.py @@ -2,8 +2,6 @@ # 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, print_function - import json import os import sys diff --git a/python/mozbuild/mozbuild/backend/cpp_eclipse.py b/python/mozbuild/mozbuild/backend/cpp_eclipse.py index 74221557a6b4..413cca3f753e 100644 --- a/python/mozbuild/mozbuild/backend/cpp_eclipse.py +++ b/python/mozbuild/mozbuild/backend/cpp_eclipse.py @@ -2,8 +2,6 @@ # 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, print_function - import errno import glob import os diff --git a/python/mozbuild/mozbuild/backend/fastermake.py b/python/mozbuild/mozbuild/backend/fastermake.py index 3f9d5ea61c23..324db29866d5 100644 --- a/python/mozbuild/mozbuild/backend/fastermake.py +++ b/python/mozbuild/mozbuild/backend/fastermake.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - from operator import itemgetter import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/backend/mach_commands.py b/python/mozbuild/mozbuild/backend/mach_commands.py index 55450ba2624f..e17e2e08549f 100644 --- a/python/mozbuild/mozbuild/backend/mach_commands.py +++ b/python/mozbuild/mozbuild/backend/mach_commands.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import logging import os diff --git a/python/mozbuild/mozbuild/backend/make.py b/python/mozbuild/mozbuild/backend/make.py index 66e523a62c70..90b37e675847 100644 --- a/python/mozbuild/mozbuild/backend/make.py +++ b/python/mozbuild/mozbuild/backend/make.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import mozpack.path as mozpath from mozbuild.frontend.data import GeneratedFile diff --git a/python/mozbuild/mozbuild/backend/recursivemake.py b/python/mozbuild/mozbuild/backend/recursivemake.py index 2fe2f13dcc90..dc18946dbc4f 100644 --- a/python/mozbuild/mozbuild/backend/recursivemake.py +++ b/python/mozbuild/mozbuild/backend/recursivemake.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import io import logging import os diff --git a/python/mozbuild/mozbuild/backend/static_analysis.py b/python/mozbuild/mozbuild/backend/static_analysis.py index 9f297edfb081..2b3ce96e75c5 100644 --- a/python/mozbuild/mozbuild/backend/static_analysis.py +++ b/python/mozbuild/mozbuild/backend/static_analysis.py @@ -7,8 +7,6 @@ # tracks folders that can be built in the non-unified environment and generates # the coresponding build commands for the files. -from __future__ import absolute_import, print_function - import os import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/backend/test_manifest.py b/python/mozbuild/mozbuild/backend/test_manifest.py index 883638d84686..ba1e5135f4e1 100644 --- a/python/mozbuild/mozbuild/backend/test_manifest.py +++ b/python/mozbuild/mozbuild/backend/test_manifest.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - from collections import defaultdict import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/backend/visualstudio.py b/python/mozbuild/mozbuild/backend/visualstudio.py index d1f2bb89188e..472ecba79246 100644 --- a/python/mozbuild/mozbuild/backend/visualstudio.py +++ b/python/mozbuild/mozbuild/backend/visualstudio.py @@ -5,8 +5,6 @@ # This file contains a build backend for generating Visual Studio project # files. -from __future__ import absolute_import, print_function, unicode_literals - import errno import os import re diff --git a/python/mozbuild/mozbuild/base.py b/python/mozbuild/mozbuild/base.py index 2e9ec8157b10..87f96be70434 100644 --- a/python/mozbuild/mozbuild/base.py +++ b/python/mozbuild/mozbuild/base.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import errno import io import json diff --git a/python/mozbuild/mozbuild/build_commands.py b/python/mozbuild/mozbuild/build_commands.py index d8254aaf4df7..47398dc3a0d0 100644 --- a/python/mozbuild/mozbuild/build_commands.py +++ b/python/mozbuild/mozbuild/build_commands.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import os import subprocess diff --git a/python/mozbuild/mozbuild/chunkify.py b/python/mozbuild/mozbuild/chunkify.py index 3419989b6132..b2c10574502e 100644 --- a/python/mozbuild/mozbuild/chunkify.py +++ b/python/mozbuild/mozbuild/chunkify.py @@ -7,8 +7,6 @@ # of version 1.2. Its license (MPL2) is contained in repo root LICENSE file. # Please make modifications there where possible. -from __future__ import absolute_import, print_function - from itertools import islice diff --git a/python/mozbuild/mozbuild/code_analysis/mach_commands.py b/python/mozbuild/mozbuild/code_analysis/mach_commands.py index 6fc5695a7cf4..029aa6d74989 100644 --- a/python/mozbuild/mozbuild/code_analysis/mach_commands.py +++ b/python/mozbuild/mozbuild/code_analysis/mach_commands.py @@ -1,8 +1,6 @@ # 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, print_function, unicode_literals - import concurrent.futures import json import logging diff --git a/python/mozbuild/mozbuild/code_analysis/utils.py b/python/mozbuild/mozbuild/code_analysis/utils.py index cd01b27f4243..e3931aa7e4eb 100644 --- a/python/mozbuild/mozbuild/code_analysis/utils.py +++ b/python/mozbuild/mozbuild/code_analysis/utils.py @@ -2,8 +2,6 @@ # 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, print_function - import logging import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/codecoverage/chrome_map.py b/python/mozbuild/mozbuild/codecoverage/chrome_map.py index 448280e25743..79cedd2faf81 100644 --- a/python/mozbuild/mozbuild/codecoverage/chrome_map.py +++ b/python/mozbuild/mozbuild/codecoverage/chrome_map.py @@ -2,8 +2,6 @@ # 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, print_function - import json import os import re diff --git a/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py b/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py index b6c9faa9cf77..62dfac1723f5 100644 --- a/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py +++ b/python/mozbuild/mozbuild/codecoverage/lcov_rewriter.py @@ -2,8 +2,6 @@ # 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, print_function - import json import os from argparse import ArgumentParser diff --git a/python/mozbuild/mozbuild/codecoverage/manifest_handler.py b/python/mozbuild/mozbuild/codecoverage/manifest_handler.py index 0c1250b1d4bd..1f67b4089c4d 100644 --- a/python/mozbuild/mozbuild/codecoverage/manifest_handler.py +++ b/python/mozbuild/mozbuild/codecoverage/manifest_handler.py @@ -2,8 +2,6 @@ # 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, print_function - from collections import defaultdict try: diff --git a/python/mozbuild/mozbuild/codecoverage/packager.py b/python/mozbuild/mozbuild/codecoverage/packager.py index 6d7cd9eeec1c..92254a96f51a 100644 --- a/python/mozbuild/mozbuild/codecoverage/packager.py +++ b/python/mozbuild/mozbuild/codecoverage/packager.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import errno import json diff --git a/python/mozbuild/mozbuild/compilation/codecomplete.py b/python/mozbuild/mozbuild/compilation/codecomplete.py index e59f1118e43d..497061e983bd 100644 --- a/python/mozbuild/mozbuild/compilation/codecomplete.py +++ b/python/mozbuild/mozbuild/compilation/codecomplete.py @@ -4,8 +4,6 @@ # This modules provides functionality for dealing with code completion. -from __future__ import absolute_import, print_function - from mach.decorators import Command, CommandArgument from mozbuild.shellutil import quote as shell_quote diff --git a/python/mozbuild/mozbuild/compilation/database.py b/python/mozbuild/mozbuild/compilation/database.py index f0273bd2b13b..16d03e6fa767 100644 --- a/python/mozbuild/mozbuild/compilation/database.py +++ b/python/mozbuild/mozbuild/compilation/database.py @@ -4,8 +4,6 @@ # This modules provides functionality for dealing with code completion. -from __future__ import absolute_import, print_function - import os from collections import OrderedDict, defaultdict diff --git a/python/mozbuild/mozbuild/compilation/util.py b/python/mozbuild/mozbuild/compilation/util.py index 80b786566722..fc06382a3bf8 100644 --- a/python/mozbuild/mozbuild/compilation/util.py +++ b/python/mozbuild/mozbuild/compilation/util.py @@ -2,8 +2,6 @@ # 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, print_function - import os diff --git a/python/mozbuild/mozbuild/compilation/warnings.py b/python/mozbuild/mozbuild/compilation/warnings.py index 16614627d37c..4f0ef57e5148 100644 --- a/python/mozbuild/mozbuild/compilation/warnings.py +++ b/python/mozbuild/mozbuild/compilation/warnings.py @@ -4,8 +4,6 @@ # This modules provides functionality for dealing with compiler warnings. -from __future__ import absolute_import, print_function, unicode_literals - import errno import io import json diff --git a/python/mozbuild/mozbuild/config_status.py b/python/mozbuild/mozbuild/config_status.py index 4304a4becd4b..7b944569ab4b 100644 --- a/python/mozbuild/mozbuild/config_status.py +++ b/python/mozbuild/mozbuild/config_status.py @@ -6,8 +6,6 @@ # drop-in replacement for autoconf 2.13's config.status, with features # borrowed from autoconf > 2.5, and additional features. -from __future__ import absolute_import, print_function - import logging import os import sys diff --git a/python/mozbuild/mozbuild/configure/__init__.py b/python/mozbuild/mozbuild/configure/__init__.py index 702a612ececa..f60f179d6bf4 100644 --- a/python/mozbuild/mozbuild/configure/__init__.py +++ b/python/mozbuild/mozbuild/configure/__init__.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import codecs import inspect import logging diff --git a/python/mozbuild/mozbuild/configure/check_debug_ranges.py b/python/mozbuild/mozbuild/configure/check_debug_ranges.py index d965812419e1..f82624c14fa4 100644 --- a/python/mozbuild/mozbuild/configure/check_debug_ranges.py +++ b/python/mozbuild/mozbuild/configure/check_debug_ranges.py @@ -6,8 +6,6 @@ # to a given compilation unit. This is used as a helper to find a bug in some # versions of GNU ld. -from __future__ import absolute_import, print_function, unicode_literals - import re import subprocess import sys diff --git a/python/mozbuild/mozbuild/configure/constants.py b/python/mozbuild/mozbuild/configure/constants.py index da279a4e6750..e03acb1655aa 100644 --- a/python/mozbuild/mozbuild/configure/constants.py +++ b/python/mozbuild/mozbuild/configure/constants.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - from collections import OrderedDict from mozbuild.util import EnumString diff --git a/python/mozbuild/mozbuild/configure/help.py b/python/mozbuild/mozbuild/configure/help.py index a92fdfe9ca6a..bfd5e6ad6d0e 100644 --- a/python/mozbuild/mozbuild/configure/help.py +++ b/python/mozbuild/mozbuild/configure/help.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import re from collections import defaultdict diff --git a/python/mozbuild/mozbuild/configure/lint.py b/python/mozbuild/mozbuild/configure/lint.py index 4ce593161244..7ea379b1eff7 100644 --- a/python/mozbuild/mozbuild/configure/lint.py +++ b/python/mozbuild/mozbuild/configure/lint.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import inspect import re import types diff --git a/python/mozbuild/mozbuild/configure/options.py b/python/mozbuild/mozbuild/configure/options.py index dad9089f0907..4b623af5fad2 100644 --- a/python/mozbuild/mozbuild/configure/options.py +++ b/python/mozbuild/mozbuild/configure/options.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import inspect import os import sys diff --git a/python/mozbuild/mozbuild/configure/util.py b/python/mozbuild/mozbuild/configure/util.py index 675498bb9da1..a58dc4d3f47e 100644 --- a/python/mozbuild/mozbuild/configure/util.py +++ b/python/mozbuild/mozbuild/configure/util.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import codecs import io import itertools diff --git a/python/mozbuild/mozbuild/controller/building.py b/python/mozbuild/mozbuild/controller/building.py index 43a2b59cfbb3..18c639e3f832 100644 --- a/python/mozbuild/mozbuild/controller/building.py +++ b/python/mozbuild/mozbuild/controller/building.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import errno import getpass import io diff --git a/python/mozbuild/mozbuild/controller/clobber.py b/python/mozbuild/mozbuild/controller/clobber.py index 3cb6bda36f48..3deba54d756c 100644 --- a/python/mozbuild/mozbuild/controller/clobber.py +++ b/python/mozbuild/mozbuild/controller/clobber.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - r"""This module contains code for managing clobbering of the tree.""" import errno diff --git a/python/mozbuild/mozbuild/doctor.py b/python/mozbuild/mozbuild/doctor.py index af2c936c3b47..649b50200d48 100644 --- a/python/mozbuild/mozbuild/doctor.py +++ b/python/mozbuild/mozbuild/doctor.py @@ -2,8 +2,6 @@ # 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, print_function - import enum import locale import os diff --git a/python/mozbuild/mozbuild/dotproperties.py b/python/mozbuild/mozbuild/dotproperties.py index 832d666695a7..9b615cc43f66 100644 --- a/python/mozbuild/mozbuild/dotproperties.py +++ b/python/mozbuild/mozbuild/dotproperties.py @@ -4,8 +4,6 @@ # This file contains utility functions for reading .properties files -from __future__ import absolute_import, print_function, unicode_literals - import codecs import re import sys diff --git a/python/mozbuild/mozbuild/faster_daemon.py b/python/mozbuild/mozbuild/faster_daemon.py index a1ab2dcef9a6..9988532a2e6f 100644 --- a/python/mozbuild/mozbuild/faster_daemon.py +++ b/python/mozbuild/mozbuild/faster_daemon.py @@ -7,8 +7,6 @@ Use pywatchman to watch source directories and perform partial |mach build faster| builds. """ -from __future__ import absolute_import, print_function, unicode_literals - import datetime import sys import time diff --git a/python/mozbuild/mozbuild/frontend/context.py b/python/mozbuild/mozbuild/frontend/context.py index 63ff428ab587..0618249622df 100644 --- a/python/mozbuild/mozbuild/frontend/context.py +++ b/python/mozbuild/mozbuild/frontend/context.py @@ -14,8 +14,6 @@ If you are looking for the absolute authority on what moz.build files can contain, you've come to the right place. """ -from __future__ import absolute_import, print_function, unicode_literals - import itertools import operator import os diff --git a/python/mozbuild/mozbuild/frontend/data.py b/python/mozbuild/mozbuild/frontend/data.py index 8c4510bddf35..62ba3b550aab 100644 --- a/python/mozbuild/mozbuild/frontend/data.py +++ b/python/mozbuild/mozbuild/frontend/data.py @@ -15,8 +15,6 @@ contains the code for converting executed mozbuild files into these data structures. """ -from __future__ import absolute_import, print_function, unicode_literals - from collections import OrderedDict, defaultdict import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/frontend/emitter.py b/python/mozbuild/mozbuild/frontend/emitter.py index 003c01948df3..f487e6fe9226 100644 --- a/python/mozbuild/mozbuild/frontend/emitter.py +++ b/python/mozbuild/mozbuild/frontend/emitter.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import logging import os import sys diff --git a/python/mozbuild/mozbuild/frontend/gyp_reader.py b/python/mozbuild/mozbuild/frontend/gyp_reader.py index a8f8e6d93e7b..910862a417eb 100644 --- a/python/mozbuild/mozbuild/frontend/gyp_reader.py +++ b/python/mozbuild/mozbuild/frontend/gyp_reader.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import sys import time diff --git a/python/mozbuild/mozbuild/frontend/mach_commands.py b/python/mozbuild/mozbuild/frontend/mach_commands.py index 27e56f1b94a8..6d379977dfe4 100644 --- a/python/mozbuild/mozbuild/frontend/mach_commands.py +++ b/python/mozbuild/mozbuild/frontend/mach_commands.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import json import os import sys diff --git a/python/mozbuild/mozbuild/frontend/reader.py b/python/mozbuild/mozbuild/frontend/reader.py index 9cf03cce2b12..edab024d0c80 100644 --- a/python/mozbuild/mozbuild/frontend/reader.py +++ b/python/mozbuild/mozbuild/frontend/reader.py @@ -16,8 +16,6 @@ The BuildReader contains basic logic for traversing a tree of mozbuild files. It does this by examining specific variables populated during execution. """ -from __future__ import absolute_import, print_function, unicode_literals - import ast import inspect import logging diff --git a/python/mozbuild/mozbuild/frontend/sandbox.py b/python/mozbuild/mozbuild/frontend/sandbox.py index f05eefdc9e5b..088e817cb08a 100644 --- a/python/mozbuild/mozbuild/frontend/sandbox.py +++ b/python/mozbuild/mozbuild/frontend/sandbox.py @@ -17,8 +17,6 @@ KeyError are machine parseable. This machine-friendly data is used to present user-friendly error messages in the case of errors. """ -from __future__ import absolute_import, print_function, unicode_literals - import os import sys import weakref diff --git a/python/mozbuild/mozbuild/gen_test_backend.py b/python/mozbuild/mozbuild/gen_test_backend.py index f77dd714e30b..ce499fe90a1a 100644 --- a/python/mozbuild/mozbuild/gen_test_backend.py +++ b/python/mozbuild/mozbuild/gen_test_backend.py @@ -2,8 +2,6 @@ # 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, print_function - import os import sys diff --git a/python/mozbuild/mozbuild/generated_sources.py b/python/mozbuild/mozbuild/generated_sources.py index e89a7edf849c..e22e71e5f63c 100644 --- a/python/mozbuild/mozbuild/generated_sources.py +++ b/python/mozbuild/mozbuild/generated_sources.py @@ -2,8 +2,6 @@ # 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, print_function - import hashlib import json import os diff --git a/python/mozbuild/mozbuild/gn_processor.py b/python/mozbuild/mozbuild/gn_processor.py index 98eb2d63bb6e..3d8762cb036d 100644 --- a/python/mozbuild/mozbuild/gn_processor.py +++ b/python/mozbuild/mozbuild/gn_processor.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import json import os diff --git a/python/mozbuild/mozbuild/jar.py b/python/mozbuild/mozbuild/jar.py index c3bd5eb38bb3..f7d10f7fed98 100644 --- a/python/mozbuild/mozbuild/jar.py +++ b/python/mozbuild/mozbuild/jar.py @@ -8,8 +8,6 @@ processing jar.mn files. See the documentation for jar.mn on MDC for further details on the format. """ -from __future__ import absolute_import, print_function, unicode_literals - import errno import io import logging diff --git a/python/mozbuild/mozbuild/mach_commands.py b/python/mozbuild/mozbuild/mach_commands.py index cbc544ebaea3..4dc03323e089 100644 --- a/python/mozbuild/mozbuild/mach_commands.py +++ b/python/mozbuild/mozbuild/mach_commands.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import argparse import errno import itertools diff --git a/python/mozbuild/mozbuild/makeutil.py b/python/mozbuild/mozbuild/makeutil.py index 310ca2fe12f4..96bda4f87fb9 100644 --- a/python/mozbuild/mozbuild/makeutil.py +++ b/python/mozbuild/mozbuild/makeutil.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import re from collections.abc import Iterable diff --git a/python/mozbuild/mozbuild/mozconfig.py b/python/mozbuild/mozbuild/mozconfig.py index 4bd8bcad9426..d4fa836ec5be 100644 --- a/python/mozbuild/mozbuild/mozconfig.py +++ b/python/mozbuild/mozbuild/mozconfig.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import re import subprocess diff --git a/python/mozbuild/mozbuild/mozinfo.py b/python/mozbuild/mozbuild/mozinfo.py index d99115a81887..ad334a123bd9 100644 --- a/python/mozbuild/mozbuild/mozinfo.py +++ b/python/mozbuild/mozbuild/mozinfo.py @@ -5,8 +5,6 @@ # This module produces a JSON file that provides basic build info and # configuration metadata. -from __future__ import absolute_import, print_function, unicode_literals - import json import os import platform diff --git a/python/mozbuild/mozbuild/nodeutil.py b/python/mozbuild/mozbuild/nodeutil.py index e963433d53bb..8ec724ab8921 100644 --- a/python/mozbuild/mozbuild/nodeutil.py +++ b/python/mozbuild/mozbuild/nodeutil.py @@ -2,8 +2,6 @@ # 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, print_function - import os import platform import subprocess diff --git a/python/mozbuild/mozbuild/preprocessor.py b/python/mozbuild/mozbuild/preprocessor.py index 6f9ab1475aa6..ee8ad0b991b8 100644 --- a/python/mozbuild/mozbuild/preprocessor.py +++ b/python/mozbuild/mozbuild/preprocessor.py @@ -22,8 +22,6 @@ value : | \w+ # string identifier or value; """ -from __future__ import absolute_import, print_function, unicode_literals - import errno import io import os diff --git a/python/mozbuild/mozbuild/pythonutil.py b/python/mozbuild/mozbuild/pythonutil.py index 5630e761fa00..a3540647f94d 100644 --- a/python/mozbuild/mozbuild/pythonutil.py +++ b/python/mozbuild/mozbuild/pythonutil.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import sys diff --git a/python/mozbuild/mozbuild/repackaging/application_ini.py b/python/mozbuild/mozbuild/repackaging/application_ini.py index ae8334cd9673..f11c94f781b0 100644 --- a/python/mozbuild/mozbuild/repackaging/application_ini.py +++ b/python/mozbuild/mozbuild/repackaging/application_ini.py @@ -2,8 +2,6 @@ # 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, print_function - from mozpack.files import FileFinder from six import string_types from six.moves import configparser diff --git a/python/mozbuild/mozbuild/repackaging/deb.py b/python/mozbuild/mozbuild/repackaging/deb.py index 3b1cac71e1c2..6f75ce011919 100644 --- a/python/mozbuild/mozbuild/repackaging/deb.py +++ b/python/mozbuild/mozbuild/repackaging/deb.py @@ -2,8 +2,6 @@ # 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, print_function - import datetime import os import shutil diff --git a/python/mozbuild/mozbuild/repackaging/installer.py b/python/mozbuild/mozbuild/repackaging/installer.py index 1fcb66657ada..9bd17613bffb 100644 --- a/python/mozbuild/mozbuild/repackaging/installer.py +++ b/python/mozbuild/mozbuild/repackaging/installer.py @@ -2,8 +2,6 @@ # 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, print_function - import os import shutil import tempfile diff --git a/python/mozbuild/mozbuild/repackaging/mar.py b/python/mozbuild/mozbuild/repackaging/mar.py index d08f4a4a7ab6..8a5eef0bfa7c 100644 --- a/python/mozbuild/mozbuild/repackaging/mar.py +++ b/python/mozbuild/mozbuild/repackaging/mar.py @@ -2,8 +2,6 @@ # 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, print_function - import os import shutil import subprocess diff --git a/python/mozbuild/mozbuild/repackaging/msi.py b/python/mozbuild/mozbuild/repackaging/msi.py index 3c9c4d865076..b0b1b0998329 100644 --- a/python/mozbuild/mozbuild/repackaging/msi.py +++ b/python/mozbuild/mozbuild/repackaging/msi.py @@ -2,8 +2,6 @@ # 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, print_function - import os import shutil import subprocess diff --git a/python/mozbuild/mozbuild/repackaging/msix.py b/python/mozbuild/mozbuild/repackaging/msix.py index 39ad01456604..0c362570e396 100644 --- a/python/mozbuild/mozbuild/repackaging/msix.py +++ b/python/mozbuild/mozbuild/repackaging/msix.py @@ -10,8 +10,6 @@ r"""Repackage ZIP archives (or directories) into MSIX App Packages. this is an issue with plating. """ -from __future__ import absolute_import, print_function - import itertools import logging import os diff --git a/python/mozbuild/mozbuild/repackaging/test/test_msix.py b/python/mozbuild/mozbuild/repackaging/test/test_msix.py index f95a4feb397e..f6735dcc750d 100644 --- a/python/mozbuild/mozbuild/repackaging/test/test_msix.py +++ b/python/mozbuild/mozbuild/repackaging/test/test_msix.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest from mozunit import main diff --git a/python/mozbuild/mozbuild/schedules.py b/python/mozbuild/mozbuild/schedules.py index d9383aecc19f..9ef8cc47aa7e 100644 --- a/python/mozbuild/mozbuild/schedules.py +++ b/python/mozbuild/mozbuild/schedules.py @@ -7,8 +7,6 @@ Constants for SCHEDULES configuration in moz.build files and for skip-unless-schedules optimizations in task-graph generation. """ -from __future__ import absolute_import, print_function, unicode_literals - # TODO: ideally these lists could be specified in moz.build itself # Inclusive components are those which are scheduled when certain files are diff --git a/python/mozbuild/mozbuild/settings.py b/python/mozbuild/mozbuild/settings.py index 14bd1f904fa8..e17a5cb40019 100644 --- a/python/mozbuild/mozbuild/settings.py +++ b/python/mozbuild/mozbuild/settings.py @@ -2,8 +2,6 @@ # 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 mach.decorators import SettingsProvider diff --git a/python/mozbuild/mozbuild/shellutil.py b/python/mozbuild/mozbuild/shellutil.py index c47b19f985ce..36665cf4b16b 100644 --- a/python/mozbuild/mozbuild/shellutil.py +++ b/python/mozbuild/mozbuild/shellutil.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import re diff --git a/python/mozbuild/mozbuild/telemetry.py b/python/mozbuild/mozbuild/telemetry.py index 51750f2217ef..d656a9a2aa1d 100644 --- a/python/mozbuild/mozbuild/telemetry.py +++ b/python/mozbuild/mozbuild/telemetry.py @@ -2,8 +2,6 @@ # 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, division, print_function, unicode_literals - """ This file contains functions used for telemetry. """ diff --git a/python/mozbuild/mozbuild/test/action/test_buildlist.py b/python/mozbuild/mozbuild/test/action/test_buildlist.py index a1fe72f94732..9a1d2738edbf 100644 --- a/python/mozbuild/mozbuild/test/action/test_buildlist.py +++ b/python/mozbuild/mozbuild/test/action/test_buildlist.py @@ -2,8 +2,6 @@ # 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, print_function - import os import os.path import unittest diff --git a/python/mozbuild/mozbuild/test/action/test_langpack_manifest.py b/python/mozbuild/mozbuild/test/action/test_langpack_manifest.py index 865fe146c204..db79efcc2525 100644 --- a/python/mozbuild/mozbuild/test/action/test_langpack_manifest.py +++ b/python/mozbuild/mozbuild/test/action/test_langpack_manifest.py @@ -3,8 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import, print_function - import json import os import tempfile diff --git a/python/mozbuild/mozbuild/test/action/test_node.py b/python/mozbuild/mozbuild/test/action/test_node.py index 327fe7de431c..f1ab5afd172c 100644 --- a/python/mozbuild/mozbuild/test/action/test_node.py +++ b/python/mozbuild/mozbuild/test/action/test_node.py @@ -3,8 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozbuild/test/action/test_process_install_manifest.py b/python/mozbuild/mozbuild/test/action/test_process_install_manifest.py index 6f114e6024da..3aea4bca73e3 100644 --- a/python/mozbuild/mozbuild/test/action/test_process_install_manifest.py +++ b/python/mozbuild/mozbuild/test/action/test_process_install_manifest.py @@ -3,8 +3,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import, print_function - import os import mozunit diff --git a/python/mozbuild/mozbuild/test/backend/common.py b/python/mozbuild/mozbuild/test/backend/common.py index 3cb9a19c7f7e..07cfa7540fb4 100644 --- a/python/mozbuild/mozbuild/test/backend/common.py +++ b/python/mozbuild/mozbuild/test/backend/common.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest from collections import defaultdict diff --git a/python/mozbuild/mozbuild/test/backend/test_build.py b/python/mozbuild/mozbuild/test/backend/test_build.py index 85e3c4896f04..e01c2d11fb9c 100644 --- a/python/mozbuild/mozbuild/test/backend/test_build.py +++ b/python/mozbuild/mozbuild/test/backend/test_build.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import shutil import sys diff --git a/python/mozbuild/mozbuild/test/backend/test_configenvironment.py b/python/mozbuild/mozbuild/test/backend/test_configenvironment.py index 5600a4b4da3e..7900cdd73736 100644 --- a/python/mozbuild/mozbuild/test/backend/test_configenvironment.py +++ b/python/mozbuild/mozbuild/test/backend/test_configenvironment.py @@ -2,8 +2,6 @@ # 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, print_function - import os import unittest diff --git a/python/mozbuild/mozbuild/test/backend/test_database.py b/python/mozbuild/mozbuild/test/backend/test_database.py index 77a5bd5e7219..3bc0dfefb10c 100644 --- a/python/mozbuild/mozbuild/test/backend/test_database.py +++ b/python/mozbuild/mozbuild/test/backend/test_database.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import json import os diff --git a/python/mozbuild/mozbuild/test/backend/test_fastermake.py b/python/mozbuild/mozbuild/test/backend/test_fastermake.py index 955e664adf73..1c9670b0919a 100644 --- a/python/mozbuild/mozbuild/test/backend/test_fastermake.py +++ b/python/mozbuild/mozbuild/test/backend/test_fastermake.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/test/backend/test_partialconfigenvironment.py b/python/mozbuild/mozbuild/test/backend/test_partialconfigenvironment.py index 91c799c1f8c3..13b165698125 100644 --- a/python/mozbuild/mozbuild/test/backend/test_partialconfigenvironment.py +++ b/python/mozbuild/mozbuild/test/backend/test_partialconfigenvironment.py @@ -2,8 +2,6 @@ # 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, print_function - import os import unittest from shutil import rmtree diff --git a/python/mozbuild/mozbuild/test/backend/test_recursivemake.py b/python/mozbuild/mozbuild/test/backend/test_recursivemake.py index 65679b72fa08..2286a40cee9c 100644 --- a/python/mozbuild/mozbuild/test/backend/test_recursivemake.py +++ b/python/mozbuild/mozbuild/test/backend/test_recursivemake.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import io import os import unittest diff --git a/python/mozbuild/mozbuild/test/backend/test_test_manifest.py b/python/mozbuild/mozbuild/test/backend/test_test_manifest.py index 6c13fdcd95a1..fadf65e44751 100644 --- a/python/mozbuild/mozbuild/test/backend/test_test_manifest.py +++ b/python/mozbuild/mozbuild/test/backend/test_test_manifest.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/test/backend/test_visualstudio.py b/python/mozbuild/mozbuild/test/backend/test_visualstudio.py index 4c43d56844b6..14cccb484b80 100644 --- a/python/mozbuild/mozbuild/test/backend/test_visualstudio.py +++ b/python/mozbuild/mozbuild/test/backend/test_visualstudio.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest from xml.dom.minidom import parse diff --git a/python/mozbuild/mozbuild/test/code_analysis/test_mach_commands.py b/python/mozbuild/mozbuild/test/code_analysis/test_mach_commands.py index 08c5bbd5fe4a..774688c62f27 100644 --- a/python/mozbuild/mozbuild/test/code_analysis/test_mach_commands.py +++ b/python/mozbuild/mozbuild/test/code_analysis/test_mach_commands.py @@ -1,8 +1,6 @@ # 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, print_function, unicode_literals - import os import unittest from unittest import mock diff --git a/python/mozbuild/mozbuild/test/codecoverage/test_lcov_rewrite.py b/python/mozbuild/mozbuild/test/codecoverage/test_lcov_rewrite.py index 687d56098155..9009300951ce 100644 --- a/python/mozbuild/mozbuild/test/codecoverage/test_lcov_rewrite.py +++ b/python/mozbuild/mozbuild/test/codecoverage/test_lcov_rewrite.py @@ -2,8 +2,6 @@ # 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, print_function - import json import os import shutil diff --git a/python/mozbuild/mozbuild/test/common.py b/python/mozbuild/mozbuild/test/common.py index af63249be0cb..47f04a8dd3d2 100644 --- a/python/mozbuild/mozbuild/test/common.py +++ b/python/mozbuild/mozbuild/test/common.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import errno import os import shutil diff --git a/python/mozbuild/mozbuild/test/compilation/test_warnings.py b/python/mozbuild/mozbuild/test/compilation/test_warnings.py index e2fcfd5cce8d..1769e2e33357 100644 --- a/python/mozbuild/mozbuild/test/compilation/test_warnings.py +++ b/python/mozbuild/mozbuild/test/compilation/test_warnings.py @@ -2,8 +2,6 @@ # 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, print_function - import os import unittest diff --git a/python/mozbuild/mozbuild/test/configure/common.py b/python/mozbuild/mozbuild/test/configure/common.py index 9a679fb42750..7dc1b85b22a2 100644 --- a/python/mozbuild/mozbuild/test/configure/common.py +++ b/python/mozbuild/mozbuild/test/configure/common.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import copy import errno import os diff --git a/python/mozbuild/mozbuild/test/configure/lint.py b/python/mozbuild/mozbuild/test/configure/lint.py index 345a8c3bfa6f..59d41da26491 100644 --- a/python/mozbuild/mozbuild/test/configure/lint.py +++ b/python/mozbuild/mozbuild/test/configure/lint.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozbuild/test/configure/test_checks_configure.py b/python/mozbuild/mozbuild/test/configure/test_checks_configure.py index cd932c5ed5a6..eefe166cad43 100644 --- a/python/mozbuild/mozbuild/test/configure/test_checks_configure.py +++ b/python/mozbuild/mozbuild/test/configure/test_checks_configure.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import sys import textwrap diff --git a/python/mozbuild/mozbuild/test/configure/test_compile_checks.py b/python/mozbuild/mozbuild/test/configure/test_compile_checks.py index 7d3feeac0063..3c0ef34aba3e 100644 --- a/python/mozbuild/mozbuild/test/configure/test_compile_checks.py +++ b/python/mozbuild/mozbuild/test/configure/test_compile_checks.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import textwrap import unittest diff --git a/python/mozbuild/mozbuild/test/configure/test_configure.py b/python/mozbuild/mozbuild/test/configure/test_configure.py index 3933c22f88d1..a5e42faae308 100644 --- a/python/mozbuild/mozbuild/test/configure/test_configure.py +++ b/python/mozbuild/mozbuild/test/configure/test_configure.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import sys import textwrap diff --git a/python/mozbuild/mozbuild/test/configure/test_lint.py b/python/mozbuild/mozbuild/test/configure/test_lint.py index 1b4e64d5c3e6..7ecac769c311 100644 --- a/python/mozbuild/mozbuild/test/configure/test_lint.py +++ b/python/mozbuild/mozbuild/test/configure/test_lint.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import contextlib import os import sys diff --git a/python/mozbuild/mozbuild/test/configure/test_moz_configure.py b/python/mozbuild/mozbuild/test/configure/test_moz_configure.py index 0b257443a8aa..4d28b82d9c62 100644 --- a/python/mozbuild/mozbuild/test/configure/test_moz_configure.py +++ b/python/mozbuild/mozbuild/test/configure/test_moz_configure.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - from common import BaseConfigureTest, ConfigureTestSandbox from mozunit import main diff --git a/python/mozbuild/mozbuild/test/configure/test_options.py b/python/mozbuild/mozbuild/test/configure/test_options.py index 0c780397e42c..59ba616355ae 100644 --- a/python/mozbuild/mozbuild/test/configure/test_options.py +++ b/python/mozbuild/mozbuild/test/configure/test_options.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest from mozunit import main diff --git a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py index 56cf9d5b2b88..c72241412131 100644 --- a/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py +++ b/python/mozbuild/mozbuild/test/configure/test_toolchain_configure.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import logging import os diff --git a/python/mozbuild/mozbuild/test/configure/test_toolchain_helpers.py b/python/mozbuild/mozbuild/test/configure/test_toolchain_helpers.py index 8456cb94d787..f42778215b1e 100644 --- a/python/mozbuild/mozbuild/test/configure/test_toolchain_helpers.py +++ b/python/mozbuild/mozbuild/test/configure/test_toolchain_helpers.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import copy import re import unittest diff --git a/python/mozbuild/mozbuild/test/configure/test_toolkit_moz_configure.py b/python/mozbuild/mozbuild/test/configure/test_toolkit_moz_configure.py index 4690cf66e4bb..dab8109e2ca8 100644 --- a/python/mozbuild/mozbuild/test/configure/test_toolkit_moz_configure.py +++ b/python/mozbuild/mozbuild/test/configure/test_toolkit_moz_configure.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os from buildconfig import topsrcdir diff --git a/python/mozbuild/mozbuild/test/configure/test_util.py b/python/mozbuild/mozbuild/test/configure/test_util.py index 687beca8d797..39ea503453b9 100644 --- a/python/mozbuild/mozbuild/test/configure/test_util.py +++ b/python/mozbuild/mozbuild/test/configure/test_util.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import logging import os import sys diff --git a/python/mozbuild/mozbuild/test/controller/test_ccachestats.py b/python/mozbuild/mozbuild/test/controller/test_ccachestats.py index d917b47ac98b..9a683206950e 100644 --- a/python/mozbuild/mozbuild/test/controller/test_ccachestats.py +++ b/python/mozbuild/mozbuild/test/controller/test_ccachestats.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import time import unittest diff --git a/python/mozbuild/mozbuild/test/controller/test_clobber.py b/python/mozbuild/mozbuild/test/controller/test_clobber.py index 201a59afc1e1..fff3c5a4384d 100644 --- a/python/mozbuild/mozbuild/test/controller/test_clobber.py +++ b/python/mozbuild/mozbuild/test/controller/test_clobber.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import shutil import tempfile diff --git a/python/mozbuild/mozbuild/test/frontend/test_context.py b/python/mozbuild/mozbuild/test/frontend/test_context.py index 1f433f94205b..fbf35e1c8c7c 100644 --- a/python/mozbuild/mozbuild/test/frontend/test_context.py +++ b/python/mozbuild/mozbuild/test/frontend/test_context.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozbuild/test/frontend/test_emitter.py b/python/mozbuild/mozbuild/test/frontend/test_emitter.py index a015d959e90f..430d2279ec5a 100644 --- a/python/mozbuild/mozbuild/test/frontend/test_emitter.py +++ b/python/mozbuild/mozbuild/test/frontend/test_emitter.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozbuild/test/frontend/test_namespaces.py b/python/mozbuild/mozbuild/test/frontend/test_namespaces.py index d0d31db51eaf..e8c1a3eb00bb 100644 --- a/python/mozbuild/mozbuild/test/frontend/test_namespaces.py +++ b/python/mozbuild/mozbuild/test/frontend/test_namespaces.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest import six diff --git a/python/mozbuild/mozbuild/test/frontend/test_reader.py b/python/mozbuild/mozbuild/test/frontend/test_reader.py index 84e065b87b12..a15bb15d7ec5 100644 --- a/python/mozbuild/mozbuild/test/frontend/test_reader.py +++ b/python/mozbuild/mozbuild/test/frontend/test_reader.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import sys import unittest diff --git a/python/mozbuild/mozbuild/test/frontend/test_sandbox.py b/python/mozbuild/mozbuild/test/frontend/test_sandbox.py index 687cc3f43a0c..017de1ce9ce1 100644 --- a/python/mozbuild/mozbuild/test/frontend/test_sandbox.py +++ b/python/mozbuild/mozbuild/test/frontend/test_sandbox.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest import mozpack.path as mozpath diff --git a/python/mozbuild/mozbuild/test/test_android_version_code.py b/python/mozbuild/mozbuild/test/test_android_version_code.py index 7904be9f96ba..7600ebe0d823 100644 --- a/python/mozbuild/mozbuild/test/test_android_version_code.py +++ b/python/mozbuild/mozbuild/test/test_android_version_code.py @@ -2,8 +2,6 @@ # 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, print_function - import unittest from mozunit import main diff --git a/python/mozbuild/mozbuild/test/test_artifact_cache.py b/python/mozbuild/mozbuild/test/test_artifact_cache.py index 1ea83188723c..d12d150183a3 100644 --- a/python/mozbuild/mozbuild/test/test_artifact_cache.py +++ b/python/mozbuild/mozbuild/test/test_artifact_cache.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import time import unittest diff --git a/python/mozbuild/mozbuild/test/test_base.py b/python/mozbuild/mozbuild/test/test_base.py index d9d1b33ef882..c75a71ef5dd8 100644 --- a/python/mozbuild/mozbuild/test/test_base.py +++ b/python/mozbuild/mozbuild/test/test_base.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import json import os import shutil diff --git a/python/mozbuild/mozbuild/test/test_containers.py b/python/mozbuild/mozbuild/test/test_containers.py index 6b96edd1816c..50dd0a4088e7 100644 --- a/python/mozbuild/mozbuild/test/test_containers.py +++ b/python/mozbuild/mozbuild/test/test_containers.py @@ -2,8 +2,6 @@ # 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, print_function - import unittest from collections import OrderedDict diff --git a/python/mozbuild/mozbuild/test/test_dotproperties.py b/python/mozbuild/mozbuild/test/test_dotproperties.py index 81f449fa7c3d..4e7a4377999d 100644 --- a/python/mozbuild/mozbuild/test/test_dotproperties.py +++ b/python/mozbuild/mozbuild/test/test_dotproperties.py @@ -1,7 +1,5 @@ # -*- coding: utf-8 -*- -from __future__ import absolute_import, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozbuild/test/test_expression.py b/python/mozbuild/mozbuild/test/test_expression.py index a0e5849f9b75..535e62bf43ea 100644 --- a/python/mozbuild/mozbuild/test/test_expression.py +++ b/python/mozbuild/mozbuild/test/test_expression.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, print_function - import unittest import mozunit diff --git a/python/mozbuild/mozbuild/test/test_jarmaker.py b/python/mozbuild/mozbuild/test/test_jarmaker.py index d487058e1f07..24a8c7694a20 100644 --- a/python/mozbuild/mozbuild/test/test_jarmaker.py +++ b/python/mozbuild/mozbuild/test/test_jarmaker.py @@ -2,8 +2,6 @@ # 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, print_function - import os import os.path import sys diff --git a/python/mozbuild/mozbuild/test/test_licenses.py b/python/mozbuild/mozbuild/test/test_licenses.py index 938fa5b0d8c2..9f3f12d42300 100644 --- a/python/mozbuild/mozbuild/test/test_licenses.py +++ b/python/mozbuild/mozbuild/test/test_licenses.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, print_function - import unittest import mozunit diff --git a/python/mozbuild/mozbuild/test/test_line_endings.py b/python/mozbuild/mozbuild/test/test_line_endings.py index a9c1498f3e2e..f8cdd89174a5 100644 --- a/python/mozbuild/mozbuild/test/test_line_endings.py +++ b/python/mozbuild/mozbuild/test/test_line_endings.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import, print_function, unicode_literals - import unittest import mozunit diff --git a/python/mozbuild/mozbuild/test/test_makeutil.py b/python/mozbuild/mozbuild/test/test_makeutil.py index a38de120946f..524851bfbd37 100644 --- a/python/mozbuild/mozbuild/test/test_makeutil.py +++ b/python/mozbuild/mozbuild/test/test_makeutil.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozbuild/test/test_manifest.py b/python/mozbuild/mozbuild/test/test_manifest.py index 7e1c04d2b4c3..e5675aba3625 100644 --- a/python/mozbuild/mozbuild/test/test_manifest.py +++ b/python/mozbuild/mozbuild/test/test_manifest.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest import mozfile diff --git a/python/mozbuild/mozbuild/test/test_mozconfig.py b/python/mozbuild/mozbuild/test/test_mozconfig.py index 080e0ed0bbb6..20827d7f2957 100644 --- a/python/mozbuild/mozbuild/test/test_mozconfig.py +++ b/python/mozbuild/mozbuild/test/test_mozconfig.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest from shutil import rmtree diff --git a/python/mozbuild/mozbuild/test/test_mozinfo.py b/python/mozbuild/mozbuild/test/test_mozinfo.py index 4f4f4f0d042e..0d966b3dcc47 100755 --- a/python/mozbuild/mozbuild/test/test_mozinfo.py +++ b/python/mozbuild/mozbuild/test/test_mozinfo.py @@ -3,8 +3,6 @@ # 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, print_function, unicode_literals - import json import os import tempfile diff --git a/python/mozbuild/mozbuild/test/test_preprocessor.py b/python/mozbuild/mozbuild/test/test_preprocessor.py index ed05ccea57da..3f02361e5e81 100644 --- a/python/mozbuild/mozbuild/test/test_preprocessor.py +++ b/python/mozbuild/mozbuild/test/test_preprocessor.py @@ -2,8 +2,6 @@ # 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, print_function - import os import shutil import unittest diff --git a/python/mozbuild/mozbuild/test/test_pythonutil.py b/python/mozbuild/mozbuild/test/test_pythonutil.py index c6b060c75281..6ebb5cc46e27 100644 --- a/python/mozbuild/mozbuild/test/test_pythonutil.py +++ b/python/mozbuild/mozbuild/test/test_pythonutil.py @@ -2,8 +2,6 @@ # 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, print_function - import os from mozunit import main diff --git a/python/mozbuild/mozbuild/test/test_rewrite_mozbuild.py b/python/mozbuild/mozbuild/test/test_rewrite_mozbuild.py index ca738b2da44b..467295c9e964 100644 --- a/python/mozbuild/mozbuild/test/test_rewrite_mozbuild.py +++ b/python/mozbuild/mozbuild/test/test_rewrite_mozbuild.py @@ -3,8 +3,6 @@ # 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, print_function, unicode_literals - import os import tempfile import unittest diff --git a/python/mozbuild/mozbuild/test/test_telemetry.py b/python/mozbuild/mozbuild/test/test_telemetry.py index 7f5bd845f801..894e32ee2d09 100644 --- a/python/mozbuild/mozbuild/test/test_telemetry.py +++ b/python/mozbuild/mozbuild/test/test_telemetry.py @@ -1,8 +1,6 @@ # Any copyright is dedicated to the Public Domain. # http://creativecommons.org/publicdomain/zero/1.0/ -from __future__ import absolute_import, print_function - import os import buildconfig diff --git a/python/mozbuild/mozbuild/test/test_telemetry_settings.py b/python/mozbuild/mozbuild/test/test_telemetry_settings.py index 4baa04621740..2d50141a1555 100644 --- a/python/mozbuild/mozbuild/test/test_telemetry_settings.py +++ b/python/mozbuild/mozbuild/test/test_telemetry_settings.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os from unittest import mock from unittest.mock import Mock diff --git a/python/mozbuild/mozbuild/test/test_util.py b/python/mozbuild/mozbuild/test/test_util.py index 05813679b389..940a456e43b7 100644 --- a/python/mozbuild/mozbuild/test/test_util.py +++ b/python/mozbuild/mozbuild/test/test_util.py @@ -3,8 +3,6 @@ # 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, print_function, unicode_literals - import copy import hashlib import io diff --git a/python/mozbuild/mozbuild/test/test_util_fileavoidwrite.py b/python/mozbuild/mozbuild/test/test_util_fileavoidwrite.py index 6865a7697856..38c8941562be 100644 --- a/python/mozbuild/mozbuild/test/test_util_fileavoidwrite.py +++ b/python/mozbuild/mozbuild/test/test_util_fileavoidwrite.py @@ -1,8 +1,6 @@ # 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, print_function, unicode_literals - """Tests for the FileAvoidWrite object.""" import locale diff --git a/python/mozbuild/mozbuild/test/test_vendor.py b/python/mozbuild/mozbuild/test/test_vendor.py index e8a91684b26f..07ba0883377b 100644 --- a/python/mozbuild/mozbuild/test/test_vendor.py +++ b/python/mozbuild/mozbuild/test/test_vendor.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import shutil import subprocess diff --git a/python/mozbuild/mozbuild/testing.py b/python/mozbuild/mozbuild/testing.py index ca69baf8ae01..f951434f9798 100644 --- a/python/mozbuild/mozbuild/testing.py +++ b/python/mozbuild/mozbuild/testing.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import sys diff --git a/python/mozbuild/mozbuild/toolchains.py b/python/mozbuild/mozbuild/toolchains.py index efaa6be931e4..c5418089bbfe 100644 --- a/python/mozbuild/mozbuild/toolchains.py +++ b/python/mozbuild/mozbuild/toolchains.py @@ -2,8 +2,6 @@ # 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 six diff --git a/python/mozbuild/mozbuild/util.py b/python/mozbuild/mozbuild/util.py index d7172b16792b..1f06e42c5932 100644 --- a/python/mozbuild/mozbuild/util.py +++ b/python/mozbuild/mozbuild/util.py @@ -5,8 +5,6 @@ # This file contains miscellaneous utility functions that don't belong anywhere # in particular. -from __future__ import absolute_import, print_function, unicode_literals - import argparse import collections import collections.abc diff --git a/python/mozbuild/mozbuild/vendor/host_angle.py b/python/mozbuild/mozbuild/vendor/host_angle.py index ed56457c21fe..9716c76a2479 100644 --- a/python/mozbuild/mozbuild/vendor/host_angle.py +++ b/python/mozbuild/mozbuild/vendor/host_angle.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import requests from mozbuild.vendor.host_base import BaseHost diff --git a/python/mozbuild/mozbuild/vendor/host_base.py b/python/mozbuild/mozbuild/vendor/host_base.py index 6346de825765..605525667993 100644 --- a/python/mozbuild/mozbuild/vendor/host_base.py +++ b/python/mozbuild/mozbuild/vendor/host_base.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import subprocess import tempfile diff --git a/python/mozbuild/mozbuild/vendor/host_github.py b/python/mozbuild/mozbuild/vendor/host_github.py index 34828259627c..eeaa4b9eafee 100644 --- a/python/mozbuild/mozbuild/vendor/host_github.py +++ b/python/mozbuild/mozbuild/vendor/host_github.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import requests from mozbuild.vendor.host_base import BaseHost diff --git a/python/mozbuild/mozbuild/vendor/host_gitlab.py b/python/mozbuild/mozbuild/vendor/host_gitlab.py index 1cef1c409297..8bfc3ddc7981 100644 --- a/python/mozbuild/mozbuild/vendor/host_gitlab.py +++ b/python/mozbuild/mozbuild/vendor/host_gitlab.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import requests from mozbuild.vendor.host_base import BaseHost diff --git a/python/mozbuild/mozbuild/vendor/host_googlesource.py b/python/mozbuild/mozbuild/vendor/host_googlesource.py index 9d458f92f66f..c903bd99b5b3 100644 --- a/python/mozbuild/mozbuild/vendor/host_googlesource.py +++ b/python/mozbuild/mozbuild/vendor/host_googlesource.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import requests from mozbuild.vendor.host_base import BaseHost diff --git a/python/mozbuild/mozbuild/vendor/mach_commands.py b/python/mozbuild/mozbuild/vendor/mach_commands.py index 11cd22dab055..30fb0e16a59b 100644 --- a/python/mozbuild/mozbuild/vendor/mach_commands.py +++ b/python/mozbuild/mozbuild/vendor/mach_commands.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import logging import sys diff --git a/python/mozbuild/mozbuild/vendor/moz_yaml.py b/python/mozbuild/mozbuild/vendor/moz_yaml.py index 23349051ad90..82837118edbb 100644 --- a/python/mozbuild/mozbuild/vendor/moz_yaml.py +++ b/python/mozbuild/mozbuild/vendor/moz_yaml.py @@ -7,8 +7,6 @@ # Requires `pyyaml` and `voluptuous` # (both are in-tree under third_party/python) -from __future__ import absolute_import, print_function, unicode_literals - import errno import os import re diff --git a/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py b/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py index 3c2e9f777859..cd051a919228 100644 --- a/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py +++ b/python/mozbuild/mozbuild/vendor/rewrite_mozbuild.py @@ -7,8 +7,6 @@ # Requires `pyyaml` and `voluptuous` # (both are in-tree under third_party/python) -from __future__ import absolute_import, print_function, unicode_literals - """ Problem: ./mach vendor needs to be able to add or remove files from moz.build files automatically to diff --git a/python/mozbuild/mozbuild/vendor/vendor_manifest.py b/python/mozbuild/mozbuild/vendor/vendor_manifest.py index 839886410cf3..30aee7757e59 100644 --- a/python/mozbuild/mozbuild/vendor/vendor_manifest.py +++ b/python/mozbuild/mozbuild/vendor/vendor_manifest.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import functools import glob import logging diff --git a/python/mozbuild/mozbuild/vendor/vendor_python.py b/python/mozbuild/mozbuild/vendor/vendor_python.py index 75980c2c3a79..95dd8e70ed78 100644 --- a/python/mozbuild/mozbuild/vendor/vendor_python.py +++ b/python/mozbuild/mozbuild/vendor/vendor_python.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import shutil import subprocess diff --git a/python/mozbuild/mozbuild/vendor/vendor_rust.py b/python/mozbuild/mozbuild/vendor/vendor_rust.py index 7c237deae689..93583418dfb6 100644 --- a/python/mozbuild/mozbuild/vendor/vendor_rust.py +++ b/python/mozbuild/mozbuild/vendor/vendor_rust.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import errno import hashlib import json diff --git a/python/mozbuild/mozpack/archive.py b/python/mozbuild/mozpack/archive.py index 19d2e8c95043..e326abea1713 100644 --- a/python/mozbuild/mozpack/archive.py +++ b/python/mozbuild/mozpack/archive.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import bz2 import gzip import stat diff --git a/python/mozbuild/mozpack/chrome/flags.py b/python/mozbuild/mozpack/chrome/flags.py index f5f971d3ee91..08e975dbe1d1 100644 --- a/python/mozbuild/mozpack/chrome/flags.py +++ b/python/mozbuild/mozpack/chrome/flags.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import re from collections import OrderedDict diff --git a/python/mozbuild/mozpack/chrome/manifest.py b/python/mozbuild/mozpack/chrome/manifest.py index 2bb609aebc09..badbd2fd9ceb 100644 --- a/python/mozbuild/mozpack/chrome/manifest.py +++ b/python/mozbuild/mozpack/chrome/manifest.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import re diff --git a/python/mozbuild/mozpack/copier.py b/python/mozbuild/mozpack/copier.py index 266e3d2e73b4..bf222abbcaf2 100644 --- a/python/mozbuild/mozpack/copier.py +++ b/python/mozbuild/mozpack/copier.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import concurrent.futures as futures import errno import os diff --git a/python/mozbuild/mozpack/errors.py b/python/mozbuild/mozpack/errors.py index bf240af6f9fa..eeb8632fbb24 100644 --- a/python/mozbuild/mozpack/errors.py +++ b/python/mozbuild/mozpack/errors.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import sys from contextlib import contextmanager diff --git a/python/mozbuild/mozpack/executables.py b/python/mozbuild/mozpack/executables.py index 8a983c21ee74..96bcd40fae76 100644 --- a/python/mozbuild/mozpack/executables.py +++ b/python/mozbuild/mozpack/executables.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import struct import subprocess diff --git a/python/mozbuild/mozpack/files.py b/python/mozbuild/mozpack/files.py index dbc66e3e5d45..7a996f65ecea 100644 --- a/python/mozbuild/mozpack/files.py +++ b/python/mozbuild/mozpack/files.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import bisect import codecs import errno diff --git a/python/mozbuild/mozpack/manifests.py b/python/mozbuild/mozpack/manifests.py index 8d46c048999d..32ec3f73630c 100644 --- a/python/mozbuild/mozpack/manifests.py +++ b/python/mozbuild/mozpack/manifests.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import json from contextlib import contextmanager diff --git a/python/mozbuild/mozpack/mozjar.py b/python/mozbuild/mozpack/mozjar.py index 98f20a0b07b7..f9db5b9aca2a 100644 --- a/python/mozbuild/mozpack/mozjar.py +++ b/python/mozbuild/mozpack/mozjar.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import struct import zlib diff --git a/python/mozbuild/mozpack/packager/__init__.py b/python/mozbuild/mozpack/packager/__init__.py index 20c6d1113116..b118b6a2d10d 100644 --- a/python/mozbuild/mozpack/packager/__init__.py +++ b/python/mozbuild/mozpack/packager/__init__.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import codecs import json import os diff --git a/python/mozbuild/mozpack/packager/formats.py b/python/mozbuild/mozpack/packager/formats.py index 6774f8913c9e..db5dc0c5174b 100644 --- a/python/mozbuild/mozpack/packager/formats.py +++ b/python/mozbuild/mozpack/packager/formats.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import mozpack.path as mozpath from mozpack.chrome.manifest import ( Manifest, diff --git a/python/mozbuild/mozpack/packager/l10n.py b/python/mozbuild/mozpack/packager/l10n.py index 4424985738e7..a3b628ac9f2f 100644 --- a/python/mozbuild/mozpack/packager/l10n.py +++ b/python/mozbuild/mozpack/packager/l10n.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - """ Replace localized parts of a packaged directory with data from a langpack directory. diff --git a/python/mozbuild/mozpack/packager/unpack.py b/python/mozbuild/mozpack/packager/unpack.py index ef47df734eda..f5729a3e91bd 100644 --- a/python/mozbuild/mozpack/packager/unpack.py +++ b/python/mozbuild/mozpack/packager/unpack.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import codecs import mozpack.path as mozpath diff --git a/python/mozbuild/mozpack/path.py b/python/mozbuild/mozpack/path.py index 31ac50544217..3e5af0a06b27 100644 --- a/python/mozbuild/mozpack/path.py +++ b/python/mozbuild/mozpack/path.py @@ -8,8 +8,6 @@ separators (always use forward slashes). Also contains a few additional utilities not found in :py:mod:`os.path`. """ -from __future__ import absolute_import, print_function, unicode_literals - import ctypes import os import posixpath diff --git a/python/mozbuild/mozpack/test/support/minify_js_verify.py b/python/mozbuild/mozpack/test/support/minify_js_verify.py index c9736be0d52c..88cc0ece0c8e 100644 --- a/python/mozbuild/mozpack/test/support/minify_js_verify.py +++ b/python/mozbuild/mozpack/test/support/minify_js_verify.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import sys if len(sys.argv) != 4: diff --git a/python/mozbuild/mozpack/test/test_archive.py b/python/mozbuild/mozpack/test/test_archive.py index 4ff64a7eca6a..8a6cd1bf25d3 100644 --- a/python/mozbuild/mozpack/test/test_archive.py +++ b/python/mozbuild/mozpack/test/test_archive.py @@ -2,8 +2,6 @@ # 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, print_function - import hashlib import os import shutil diff --git a/python/mozbuild/mozpack/test/test_chrome_flags.py b/python/mozbuild/mozpack/test/test_chrome_flags.py index 74470d600971..340484ad2968 100644 --- a/python/mozbuild/mozpack/test/test_chrome_flags.py +++ b/python/mozbuild/mozpack/test/test_chrome_flags.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest import mozunit diff --git a/python/mozbuild/mozpack/test/test_chrome_manifest.py b/python/mozbuild/mozpack/test/test_chrome_manifest.py index 9d6522747b51..52aa5705e849 100644 --- a/python/mozbuild/mozpack/test/test_chrome_manifest.py +++ b/python/mozbuild/mozpack/test/test_chrome_manifest.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozpack/test/test_copier.py b/python/mozbuild/mozpack/test/test_copier.py index 4f2b2f2458c9..ea2b0eae80f8 100644 --- a/python/mozbuild/mozpack/test/test_copier.py +++ b/python/mozbuild/mozpack/test/test_copier.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import stat import unittest diff --git a/python/mozbuild/mozpack/test/test_errors.py b/python/mozbuild/mozpack/test/test_errors.py index 05704da1fe97..31e3922c9657 100644 --- a/python/mozbuild/mozpack/test/test_errors.py +++ b/python/mozbuild/mozpack/test/test_errors.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import sys import unittest diff --git a/python/mozbuild/mozpack/test/test_files.py b/python/mozbuild/mozpack/test/test_files.py index c5600ccf7f92..07edad79592e 100644 --- a/python/mozbuild/mozpack/test/test_files.py +++ b/python/mozbuild/mozpack/test/test_files.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - from mozpack.errors import ErrorMessage, errors from mozpack.files import ( AbsoluteSymlinkFile, diff --git a/python/mozbuild/mozpack/test/test_manifests.py b/python/mozbuild/mozpack/test/test_manifests.py index a76200cf8fa7..ee5e6220b49f 100644 --- a/python/mozbuild/mozpack/test/test_manifests.py +++ b/python/mozbuild/mozpack/test/test_manifests.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import mozunit diff --git a/python/mozbuild/mozpack/test/test_mozjar.py b/python/mozbuild/mozpack/test/test_mozjar.py index 09372844db8d..7a17501cc5fb 100644 --- a/python/mozbuild/mozpack/test/test_mozjar.py +++ b/python/mozbuild/mozpack/test/test_mozjar.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest from collections import OrderedDict diff --git a/python/mozbuild/mozpack/test/test_packager.py b/python/mozbuild/mozpack/test/test_packager.py index 99b66754fb8b..3e5ae5cdcb56 100644 --- a/python/mozbuild/mozpack/test/test_packager.py +++ b/python/mozbuild/mozpack/test/test_packager.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/mozpack/test/test_packager_formats.py b/python/mozbuild/mozpack/test/test_packager_formats.py index aa30f6ffcb15..e9bc56c85683 100644 --- a/python/mozbuild/mozpack/test/test_packager_formats.py +++ b/python/mozbuild/mozpack/test/test_packager_formats.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest from itertools import chain diff --git a/python/mozbuild/mozpack/test/test_packager_l10n.py b/python/mozbuild/mozpack/test/test_packager_l10n.py index 135fb6c86a9d..caef92a3c01a 100644 --- a/python/mozbuild/mozpack/test/test_packager_l10n.py +++ b/python/mozbuild/mozpack/test/test_packager_l10n.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import unittest import mozunit diff --git a/python/mozbuild/mozpack/test/test_packager_unpack.py b/python/mozbuild/mozpack/test/test_packager_unpack.py index eae6f64d9097..1f679e3a0df5 100644 --- a/python/mozbuild/mozpack/test/test_packager_unpack.py +++ b/python/mozbuild/mozpack/test/test_packager_unpack.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import mozunit from mozpack.copier import FileCopier, FileRegistry from mozpack.packager.formats import FlatFormatter, JarFormatter, OmniJarFormatter diff --git a/python/mozbuild/mozpack/test/test_path.py b/python/mozbuild/mozpack/test/test_path.py index cdf9e8d01184..daee5df0e4bc 100644 --- a/python/mozbuild/mozpack/test/test_path.py +++ b/python/mozbuild/mozpack/test/test_path.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import os import unittest diff --git a/python/mozbuild/setup.py b/python/mozbuild/setup.py index 4fa840f0cb51..30785493b051 100644 --- a/python/mozbuild/setup.py +++ b/python/mozbuild/setup.py @@ -2,8 +2,6 @@ # 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 setuptools import find_packages, setup VERSION = "0.2" diff --git a/python/mozlint/mozlint/parser.py b/python/mozlint/mozlint/parser.py index 050257f147c3..eac502495b2f 100644 --- a/python/mozlint/mozlint/parser.py +++ b/python/mozlint/mozlint/parser.py @@ -2,8 +2,6 @@ # 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 yaml diff --git a/python/mozlint/test/files/foobar.py b/python/mozlint/test/files/foobar.py index 441f954ec18f..3b6416d2116c 100644 --- a/python/mozlint/test/files/foobar.py +++ b/python/mozlint/test/files/foobar.py @@ -1,5 +1,3 @@ # Oh no.. we called this variable foobar, bad! -from __future__ import absolute_import - foobar = "a string" diff --git a/python/mozperftest/setup.py b/python/mozperftest/setup.py index 356209f5fca9..75ebab930550 100644 --- a/python/mozperftest/setup.py +++ b/python/mozperftest/setup.py @@ -2,8 +2,6 @@ # 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 setuptools import setup PACKAGE_NAME = "mozperftest" diff --git a/python/mozrelease/mozrelease/balrog.py b/python/mozrelease/mozrelease/balrog.py index 985ab148c862..31418d352e44 100644 --- a/python/mozrelease/mozrelease/balrog.py +++ b/python/mozrelease/mozrelease/balrog.py @@ -3,8 +3,6 @@ # 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, print_function, unicode_literals - def _generate_show_url(context, entry): url = entry["url"] diff --git a/python/mozrelease/mozrelease/buglist_creator.py b/python/mozrelease/mozrelease/buglist_creator.py index 9e2b5ce668fc..90d9f9fb3f80 100644 --- a/python/mozrelease/mozrelease/buglist_creator.py +++ b/python/mozrelease/mozrelease/buglist_creator.py @@ -3,8 +3,6 @@ # 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, print_function - import logging import os import re diff --git a/python/mozrelease/mozrelease/chunking.py b/python/mozrelease/mozrelease/chunking.py index 3771dc16964d..8c45f743542b 100644 --- a/python/mozrelease/mozrelease/chunking.py +++ b/python/mozrelease/mozrelease/chunking.py @@ -2,8 +2,6 @@ # 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 copy import copy diff --git a/python/mozrelease/mozrelease/l10n.py b/python/mozrelease/mozrelease/l10n.py index 048e8817f9c1..1e2a15878d9d 100644 --- a/python/mozrelease/mozrelease/l10n.py +++ b/python/mozrelease/mozrelease/l10n.py @@ -2,8 +2,6 @@ # 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 - def getPlatformLocales(shipped_locales, platform): platform_locales = [] diff --git a/python/mozrelease/mozrelease/mach_commands.py b/python/mozrelease/mozrelease/mach_commands.py index 548754390161..e7c8da59feed 100644 --- a/python/mozrelease/mozrelease/mach_commands.py +++ b/python/mozrelease/mozrelease/mach_commands.py @@ -5,8 +5,6 @@ # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from __future__ import absolute_import, print_function, unicode_literals - import logging import sys diff --git a/python/mozrelease/mozrelease/partner_attribution.py b/python/mozrelease/mozrelease/partner_attribution.py index 772762ab05a8..acc2206cb470 100644 --- a/python/mozrelease/mozrelease/partner_attribution.py +++ b/python/mozrelease/mozrelease/partner_attribution.py @@ -3,8 +3,6 @@ # 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, print_function - import argparse import json import logging diff --git a/python/mozrelease/mozrelease/paths.py b/python/mozrelease/mozrelease/paths.py index 890f794adfc1..b3d48c4ac7ba 100644 --- a/python/mozrelease/mozrelease/paths.py +++ b/python/mozrelease/mozrelease/paths.py @@ -2,8 +2,6 @@ # 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 six.moves.urllib.parse import urlunsplit product_ftp_map = { diff --git a/python/mozrelease/mozrelease/platforms.py b/python/mozrelease/mozrelease/platforms.py index 16dd849fa94a..2970725a733b 100644 --- a/python/mozrelease/mozrelease/platforms.py +++ b/python/mozrelease/mozrelease/platforms.py @@ -2,8 +2,6 @@ # 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 - update_platform_map = { "android": ["Android_arm-eabi-gcc3"], "android-arm": ["Android_arm-eabi-gcc3"], diff --git a/python/mozrelease/mozrelease/scriptworker_canary.py b/python/mozrelease/mozrelease/scriptworker_canary.py index 2fdee01f3237..92e89ed8f01c 100644 --- a/python/mozrelease/mozrelease/scriptworker_canary.py +++ b/python/mozrelease/mozrelease/scriptworker_canary.py @@ -4,8 +4,6 @@ # 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, print_function, unicode_literals - import logging import os import shutil diff --git a/python/mozrelease/mozrelease/update_verify.py b/python/mozrelease/mozrelease/update_verify.py index 874490d390d2..49fe21db1551 100644 --- a/python/mozrelease/mozrelease/update_verify.py +++ b/python/mozrelease/mozrelease/update_verify.py @@ -3,8 +3,6 @@ # 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, print_function - import os import re diff --git a/python/mozrelease/mozrelease/util.py b/python/mozrelease/mozrelease/util.py index 8839cf35b45b..3858c40514c5 100644 --- a/python/mozrelease/mozrelease/util.py +++ b/python/mozrelease/mozrelease/util.py @@ -3,8 +3,6 @@ # 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, print_function, unicode_literals - from yaml.loader import SafeLoader diff --git a/python/mozrelease/mozrelease/versions.py b/python/mozrelease/mozrelease/versions.py index 2ac691839fb3..e3e47d4e4a4a 100644 --- a/python/mozrelease/mozrelease/versions.py +++ b/python/mozrelease/mozrelease/versions.py @@ -2,8 +2,6 @@ # 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 re from distutils.version import StrictVersion diff --git a/python/mozrelease/setup.py b/python/mozrelease/setup.py index 9ec2342de57d..d831cb14c5c6 100644 --- a/python/mozrelease/setup.py +++ b/python/mozrelease/setup.py @@ -2,8 +2,6 @@ # 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 setuptools import find_packages, setup VERSION = "0.2" diff --git a/python/mozrelease/test/test_balrog.py b/python/mozrelease/test/test_balrog.py index 43f9f95880b9..0c3adfacac77 100644 --- a/python/mozrelease/test/test_balrog.py +++ b/python/mozrelease/test/test_balrog.py @@ -3,8 +3,6 @@ # 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, print_function, unicode_literals - import json from pathlib import Path diff --git a/python/mozrelease/test/test_buglist_creator.py b/python/mozrelease/test/test_buglist_creator.py index 996b93439f27..13a530bb977c 100644 --- a/python/mozrelease/test/test_buglist_creator.py +++ b/python/mozrelease/test/test_buglist_creator.py @@ -8,8 +8,6 @@ # 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, print_function - import json from pathlib import Path diff --git a/python/mozrelease/test/test_update_verify.py b/python/mozrelease/test/test_update_verify.py index 7a7f6c40a4b9..6f1cb197f73f 100644 --- a/python/mozrelease/test/test_update_verify.py +++ b/python/mozrelease/test/test_update_verify.py @@ -3,8 +3,6 @@ # 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, print_function - import os import unittest from pathlib import Path diff --git a/python/mozrelease/test/test_versions.py b/python/mozrelease/test/test_versions.py index b817423f4e1d..f3bca91f1f0f 100644 --- a/python/mozrelease/test/test_versions.py +++ b/python/mozrelease/test/test_versions.py @@ -1,5 +1,3 @@ -from __future__ import absolute_import - import mozunit import pytest diff --git a/python/mozterm/mozterm/__init__.py b/python/mozterm/mozterm/__init__.py index 50e553bca20d..ff15e588ff44 100644 --- a/python/mozterm/mozterm/__init__.py +++ b/python/mozterm/mozterm/__init__.py @@ -1,6 +1,4 @@ # 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, unicode_literals - from .terminal import NullTerminal, Terminal # noqa diff --git a/python/mozterm/mozterm/terminal.py b/python/mozterm/mozterm/terminal.py index 2442bb0be84d..f82daa67fd33 100644 --- a/python/mozterm/mozterm/terminal.py +++ b/python/mozterm/mozterm/terminal.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import os import sys diff --git a/python/mozterm/mozterm/widgets.py b/python/mozterm/mozterm/widgets.py index 57c078012182..2cf5bf250cbc 100644 --- a/python/mozterm/mozterm/widgets.py +++ b/python/mozterm/mozterm/widgets.py @@ -2,8 +2,6 @@ # 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, unicode_literals - from .terminal import Terminal DEFAULT = "\x1b(B\x1b[m" diff --git a/python/mozterm/setup.py b/python/mozterm/setup.py index 863c317449c5..270e87077c24 100644 --- a/python/mozterm/setup.py +++ b/python/mozterm/setup.py @@ -2,8 +2,6 @@ # 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 setuptools import setup VERSION = "1.0.0" diff --git a/python/mozterm/test/test_terminal.py b/python/mozterm/test/test_terminal.py index 67cf421da84b..a24dd01ba4e0 100644 --- a/python/mozterm/test/test_terminal.py +++ b/python/mozterm/test/test_terminal.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import os import sys diff --git a/python/mozterm/test/test_widgets.py b/python/mozterm/test/test_widgets.py index 3d4a956a2819..d6eb241b9440 100644 --- a/python/mozterm/test/test_widgets.py +++ b/python/mozterm/test/test_widgets.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import sys from io import StringIO diff --git a/python/mozversioncontrol/mozversioncontrol/__init__.py b/python/mozversioncontrol/mozversioncontrol/__init__.py index 4026643541a8..b847adf8f1a6 100644 --- a/python/mozversioncontrol/mozversioncontrol/__init__.py +++ b/python/mozversioncontrol/mozversioncontrol/__init__.py @@ -2,8 +2,6 @@ # 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, print_function, unicode_literals - import abc import errno import os diff --git a/python/mozversioncontrol/mozversioncontrol/repoupdate.py b/python/mozversioncontrol/mozversioncontrol/repoupdate.py index 523a28d2df8f..533626379489 100644 --- a/python/mozversioncontrol/mozversioncontrol/repoupdate.py +++ b/python/mozversioncontrol/mozversioncontrol/repoupdate.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import subprocess from pathlib import Path from typing import Union diff --git a/python/mozversioncontrol/setup.py b/python/mozversioncontrol/setup.py index 9ad6309bd1d7..c0e1aa643f89 100644 --- a/python/mozversioncontrol/setup.py +++ b/python/mozversioncontrol/setup.py @@ -2,8 +2,6 @@ # 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 setuptools import find_packages, setup VERSION = "0.1" diff --git a/python/mozversioncontrol/test/conftest.py b/python/mozversioncontrol/test/conftest.py index 1ade90c64106..78e5ad7ca809 100644 --- a/python/mozversioncontrol/test/conftest.py +++ b/python/mozversioncontrol/test/conftest.py @@ -2,8 +2,6 @@ # 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 shutil import subprocess diff --git a/python/mozversioncontrol/test/test_commit.py b/python/mozversioncontrol/test/test_commit.py index c5d9806f92ac..b795c0ea6e64 100644 --- a/python/mozversioncontrol/test/test_commit.py +++ b/python/mozversioncontrol/test/test_commit.py @@ -2,8 +2,6 @@ # 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 mozunit from mozversioncontrol import get_repository_object diff --git a/python/mozversioncontrol/test/test_context_manager.py b/python/mozversioncontrol/test/test_context_manager.py index 6bff20ee062c..3186a144d924 100644 --- a/python/mozversioncontrol/test/test_context_manager.py +++ b/python/mozversioncontrol/test/test_context_manager.py @@ -2,8 +2,6 @@ # 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 mozunit from mozversioncontrol import get_repository_object diff --git a/python/mozversioncontrol/test/test_push_to_try.py b/python/mozversioncontrol/test/test_push_to_try.py index 2641a13eea5a..d0a0b2d993ea 100644 --- a/python/mozversioncontrol/test/test_push_to_try.py +++ b/python/mozversioncontrol/test/test_push_to_try.py @@ -2,8 +2,6 @@ # 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, unicode_literals - import subprocess import mozunit diff --git a/python/mozversioncontrol/test/test_update.py b/python/mozversioncontrol/test/test_update.py index ccc52f0d1752..91c7469ee530 100644 --- a/python/mozversioncontrol/test/test_update.py +++ b/python/mozversioncontrol/test/test_update.py @@ -2,8 +2,6 @@ # 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 subprocess import CalledProcessError import mozunit diff --git a/python/mozversioncontrol/test/test_workdir_outgoing.py b/python/mozversioncontrol/test/test_workdir_outgoing.py index cbfac760f337..7bf2e6ec5766 100644 --- a/python/mozversioncontrol/test/test_workdir_outgoing.py +++ b/python/mozversioncontrol/test/test_workdir_outgoing.py @@ -2,8 +2,6 @@ # 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 mozunit diff --git a/python/mozversioncontrol/test/test_working_directory.py b/python/mozversioncontrol/test/test_working_directory.py index 26c6e59cbe25..00094a0cc452 100644 --- a/python/mozversioncontrol/test/test_working_directory.py +++ b/python/mozversioncontrol/test/test_working_directory.py @@ -2,8 +2,6 @@ # 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 mozunit from mozversioncontrol import get_repository_object