Skip to content

Commit

Permalink
Bug 1801836 - Remove no longer necessary 'from __future__' imports. r…
Browse files Browse the repository at this point in the history
…=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD

Differential Revision: https://phabricator.services.mozilla.com/D165395
  • Loading branch information
marco-c committed Dec 23, 2022
1 parent 5bdcb81 commit f69e697
Show file tree
Hide file tree
Showing 233 changed files with 1 addition and 459 deletions.
1 change: 0 additions & 1 deletion .ycm_extra_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +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 shlex
Expand Down
2 changes: 0 additions & 2 deletions accessible/mac/SelectorMapGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 re


Expand Down
2 changes: 0 additions & 2 deletions accessible/xpcom/AccEventGen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 os

import buildconfig
Expand Down
2 changes: 0 additions & 2 deletions browser/app/macversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 io
import re
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 os
import subprocess
import tempfile
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import absolute_import, print_function

import os
import time

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

import textwrap

from marionette_harness.marionette_test import MarionetteTestCase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 urllib.parse import quote

from marionette_driver import Wait, errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# add this directory to the path
from __future__ import absolute_import

import os
import sys

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# add this directory to the path
from __future__ import absolute_import

import os
import sys

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# add this directory to the path
from __future__ import absolute_import

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions browser/components/shell/test/mac_desktop_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
Includes generous amount of logging to aid debugging for use in automated tests.
"""

from __future__ import absolute_import, print_function

import argparse
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions browser/locales/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 test(mod, path, entity=None):
# ignore anything but Firefox
Expand Down
2 changes: 0 additions & 2 deletions browser/locales/generate_ini.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Generate updater.ini by doing some light substitution on the localized updater.ini input,
# and appending the contents of updater_ini_append on Windows.

from __future__ import absolute_import, print_function, unicode_literals

import codecs
import re
import shutil
Expand Down
2 changes: 0 additions & 2 deletions build/RunCbindgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 print_function

import os
import subprocess

Expand Down
2 changes: 0 additions & 2 deletions build/build-clang/build-clang.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

# Only necessary for flake8 to be happy...
from __future__ import print_function

import argparse
import errno
import fnmatch
Expand Down
2 changes: 0 additions & 2 deletions build/checksums.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 with_statement

import hashlib
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions build/compare-mozconfig/compare-mozconfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

# originally from https://hg.mozilla.org/build/tools/file/4ab9c1a4e05b/scripts/release/compare-mozconfigs.py # NOQA: E501

from __future__ import unicode_literals

import difflib
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions build/mach_initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 division, print_function, unicode_literals

import math
import os
import shutil
Expand Down
2 changes: 0 additions & 2 deletions build/upload_generated_sources.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 argparse
import gzip
import io
Expand Down
2 changes: 0 additions & 2 deletions build/valgrind/mach_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 json
import logging
import os
Expand Down
2 changes: 0 additions & 2 deletions build/valgrind/output_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 print_function, unicode_literals

import logging
import re

Expand Down
2 changes: 0 additions & 2 deletions build/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 print_function, unicode_literals

import os
import subprocess
import sys
Expand Down
2 changes: 0 additions & 2 deletions client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

HG_EXCLUSIONS = [".hg", ".hgignore", ".hgtags"]

import glob
Expand Down
2 changes: 0 additions & 2 deletions config/MozZipFile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 zipfile
Expand Down
2 changes: 0 additions & 2 deletions config/check_js_msg_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
# JSErrorFormatString.format member should be in ASCII encoding.
# ----------------------------------------------------------------------------

from __future__ import absolute_import, print_function, unicode_literals

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions config/check_js_opcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# This script checks bytecode documentation in js/src/vm/Opcodes.h
# ----------------------------------------------------------------------------

from __future__ import absolute_import, print_function

import os
import sys

Expand Down
2 changes: 0 additions & 2 deletions config/check_macroassembler_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
# proper methods annotations.
# ----------------------------------------------------------------------------

from __future__ import absolute_import, print_function

import difflib
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions config/check_source_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
# not, an error message is printed, quoting ERROR_LOCATION, which should
# probably be the filename and line number of the erroneous call to
# check_source_count.py.
from __future__ import absolute_import, print_function

import re
import sys

Expand Down
2 changes: 0 additions & 2 deletions config/check_spidermonkey_style.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
# isolation, but don't try to do any order checking between such blocks.
# ----------------------------------------------------------------------------

from __future__ import absolute_import, print_function

import difflib
import os
import re
Expand Down
2 changes: 0 additions & 2 deletions config/check_vanilla_allocations.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@
# mismatched alloc/free checking.
# ----------------------------------------------------------------------------

from __future__ import absolute_import, print_function, unicode_literals

import argparse
import re
import subprocess
Expand Down
2 changes: 0 additions & 2 deletions config/createprecomplete.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
# longer present in a complete update. The current working directory is used for
# the location to enumerate and to create the precomplete file.

from __future__ import absolute_import, unicode_literals

import io
import os

Expand Down
2 changes: 0 additions & 2 deletions config/external/ffi/preprocess_libffi_asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# License, v. 2.0. If a copy of the MPL was not distibuted with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import, print_function

import os
import shlex
import subprocess
Expand Down
2 changes: 0 additions & 2 deletions config/external/ffi/subst_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# License, v. 2.0. If a copy of the MPL was not distibuted with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from __future__ import absolute_import

import sys

import buildconfig
Expand Down
2 changes: 0 additions & 2 deletions config/external/icu/data/convert_icudata.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 subprocess

Expand Down
2 changes: 0 additions & 2 deletions config/make-stl-wrappers.py
Original file line number Diff line number Diff line change
@@ -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

import os
import string

Expand Down
2 changes: 0 additions & 2 deletions config/make-system-wrappers.py
Original file line number Diff line number Diff line change
@@ -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

import os

from mozbuild.util import FileAvoidWrite
Expand Down
2 changes: 0 additions & 2 deletions config/make-windows-h-wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
import string
import textwrap
Expand Down
2 changes: 0 additions & 2 deletions config/mozunit/mozunit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,4 @@
# License, v. 2.0. If a copy of 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 .mozunit import *
2 changes: 0 additions & 2 deletions config/mozunit/mozunit/mozunit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 inspect
import io
import os
Expand Down
2 changes: 0 additions & 2 deletions config/mozunit/mozunit/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 pytest


Expand Down
2 changes: 0 additions & 2 deletions config/mozunit/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

setup(
Expand Down
2 changes: 0 additions & 2 deletions config/nsinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
# a full build environment set up.
# The basic limitation is, it doesn't even try to link and ignores
# all related options.
from __future__ import absolute_import, print_function

import os
import os.path
import shutil
Expand Down
2 changes: 0 additions & 2 deletions config/printprereleasesuffix.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
# 2.1a3pre > ""
# 3.2b4 > " 3.2 Beta 4"
# 3.2b4pre > ""
from __future__ import absolute_import, print_function

import re
import sys

Expand Down
2 changes: 0 additions & 2 deletions config/rebuild_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading

0 comments on commit f69e697

Please sign in to comment.