зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1790816 - Reformat config/ with isort. r=linter-reviewers,ahal DONTBUILD
# ignore-this-changeset Differential Revision: https://phabricator.services.mozilla.com/D162646
This commit is contained in:
Родитель
d367adba8a
Коммит
e08a6e120b
|
@ -3,11 +3,12 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
|
||||
import os
|
||||
import six
|
||||
import time
|
||||
import zipfile
|
||||
|
||||
import six
|
||||
from mozbuild.util import lock_file
|
||||
|
||||
|
||||
|
|
|
@ -16,7 +16,6 @@ import sys
|
|||
|
||||
from mozversioncontrol import get_repository_from_env
|
||||
|
||||
|
||||
scriptname = os.path.basename(__file__)
|
||||
expected_encoding = "ascii"
|
||||
|
||||
|
|
|
@ -7,8 +7,7 @@
|
|||
# This script checks bytecode documentation in js/src/vm/Opcodes.h
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
@ -20,8 +20,7 @@
|
|||
# proper methods annotations.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import difflib
|
||||
import os
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
# 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
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import re
|
||||
import sys
|
||||
|
||||
search_string = sys.argv[1]
|
||||
expected_count = int(sys.argv[2])
|
||||
|
|
|
@ -44,6 +44,7 @@ import argparse
|
|||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import buildconfig
|
||||
|
||||
# The obvious way to implement this script is to search for occurrences of
|
||||
|
|
|
@ -2,14 +2,13 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from datetime import datetime
|
||||
import io
|
||||
import os
|
||||
import sys
|
||||
from datetime import datetime
|
||||
|
||||
from mozbuild.preprocessor import Preprocessor
|
||||
import buildconfig
|
||||
|
||||
from mozbuild.preprocessor import Preprocessor
|
||||
|
||||
TEMPLATE = """
|
||||
// This Source Code Form is subject to the terms of the Mozilla Public
|
||||
|
|
|
@ -2,14 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from argparse import (
|
||||
Action,
|
||||
ArgumentParser,
|
||||
)
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from argparse import Action, ArgumentParser
|
||||
|
||||
import buildconfig
|
||||
|
||||
|
|
|
@ -6,11 +6,10 @@
|
|||
# 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
|
||||
from __future__ import unicode_literals
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
import os
|
||||
import io
|
||||
import os
|
||||
|
||||
|
||||
def get_build_entries(root_path):
|
||||
|
|
|
@ -4,14 +4,15 @@
|
|||
# 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
|
||||
from __future__ import print_function
|
||||
import buildconfig
|
||||
import mozpack.path as mozpath
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os
|
||||
import shlex
|
||||
import subprocess
|
||||
|
||||
import buildconfig
|
||||
import mozpack.path as mozpath
|
||||
|
||||
|
||||
def main(output, input_asm, ffi_h, ffi_config_h, defines, includes):
|
||||
defines = shlex.split(defines)
|
||||
|
|
|
@ -5,7 +5,9 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import sys
|
||||
|
||||
import buildconfig
|
||||
from mozbuild.preprocessor import Preprocessor
|
||||
|
||||
|
|
|
@ -3,8 +3,10 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import buildconfig
|
||||
|
||||
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os
|
||||
import string
|
||||
from mozbuild.util import FileAvoidWrite
|
||||
|
||||
from mozbuild.util import FileAvoidWrite
|
||||
|
||||
# The 'unused' arg is the output file from the file_generate action. We actually
|
||||
# generate all the files in header_list
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os
|
||||
|
||||
from mozbuild.util import FileAvoidWrite
|
||||
|
||||
header_template = """#pragma GCC system_header
|
||||
|
|
|
@ -3,9 +3,10 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import re
|
||||
import textwrap
|
||||
import string
|
||||
import textwrap
|
||||
|
||||
comment_re = re.compile(r"//[^\n]*\n|/\*.*\*/", re.S)
|
||||
decl_re = re.compile(
|
||||
|
|
|
@ -3,19 +3,18 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import inspect
|
||||
import io
|
||||
import os
|
||||
from six import (
|
||||
BytesIO,
|
||||
StringIO,
|
||||
)
|
||||
import sys
|
||||
import unittest
|
||||
from unittest import TextTestRunner as _TestRunner, TestResult as _TestResult
|
||||
from unittest import TestResult as _TestResult
|
||||
from unittest import TextTestRunner as _TestRunner
|
||||
|
||||
import pytest
|
||||
import six
|
||||
from six import BytesIO, StringIO
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
|
|
@ -9,15 +9,16 @@
|
|||
# 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
|
||||
from __future__ import print_function
|
||||
from optparse import OptionParser
|
||||
import mozfile
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import os
|
||||
import os.path
|
||||
import six
|
||||
import sys
|
||||
import shutil
|
||||
import sys
|
||||
from optparse import OptionParser
|
||||
|
||||
import mozfile
|
||||
import six
|
||||
|
||||
|
||||
def _nsinstall_internal(argv):
|
||||
|
|
|
@ -3,12 +3,7 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import sys
|
||||
|
||||
from configparser import (
|
||||
ConfigParser,
|
||||
NoOptionError,
|
||||
NoSectionError,
|
||||
)
|
||||
from configparser import ConfigParser, NoOptionError, NoSectionError
|
||||
|
||||
try:
|
||||
(filename, section, key) = sys.argv[1:]
|
||||
|
|
|
@ -9,11 +9,10 @@
|
|||
# 2.1a3pre > ""
|
||||
# 3.2b4 > " 3.2 Beta 4"
|
||||
# 3.2b4pre > ""
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import sys
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
||||
def get_prerelease_suffix(version):
|
||||
|
|
|
@ -3,8 +3,9 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import, print_function, unicode_literals
|
||||
import os
|
||||
|
||||
import errno
|
||||
import os
|
||||
|
||||
|
||||
def mtime(path):
|
||||
|
|
|
@ -3,10 +3,12 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import
|
||||
import buildconfig
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
import buildconfig
|
||||
|
||||
|
||||
def main(output, lib_file, *scripts):
|
||||
for script in scripts:
|
||||
|
|
|
@ -2,22 +2,17 @@
|
|||
# License, v. 2.0. If a copy of 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 __future__ import unicode_literals
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
import os
|
||||
import sys
|
||||
import unittest
|
||||
|
||||
from mozunit import main
|
||||
|
||||
from mozbuild.base import MozbuildObject
|
||||
from mozpack.files import FileFinder
|
||||
from mozbuild.frontend.context import Files
|
||||
from mozbuild.frontend.reader import (
|
||||
BuildReader,
|
||||
EmptyConfig,
|
||||
)
|
||||
from mozbuild.frontend.reader import BuildReader, EmptyConfig
|
||||
from mozpack.files import FileFinder
|
||||
from mozunit import main
|
||||
|
||||
|
||||
class TestMozbuildReading(unittest.TestCase):
|
||||
|
|
|
@ -3,11 +3,13 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import os
|
||||
from mozunit import main, MockedOpen
|
||||
import unittest
|
||||
from tempfile import mkstemp
|
||||
|
||||
from mozunit import MockedOpen, main
|
||||
|
||||
|
||||
class TestMozUnit(unittest.TestCase):
|
||||
def test_mocked_open(self):
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
from __future__ import absolute_import
|
||||
import unittest
|
||||
|
||||
import os
|
||||
import six
|
||||
import sys
|
||||
import os.path
|
||||
import sys
|
||||
import time
|
||||
from tempfile import mkdtemp
|
||||
import unittest
|
||||
from shutil import rmtree
|
||||
import mozunit
|
||||
from mozprocess import processhandler
|
||||
from tempfile import mkdtemp
|
||||
|
||||
from nsinstall import nsinstall
|
||||
import mozunit
|
||||
import nsinstall as nsinstall_module
|
||||
import six
|
||||
from mozprocess import processhandler
|
||||
from nsinstall import nsinstall
|
||||
|
||||
NSINSTALL_PATH = nsinstall_module.__file__
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
import unittest
|
||||
|
||||
import mozunit
|
||||
|
||||
from printprereleasesuffix import get_prerelease_suffix
|
||||
|
||||
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from __future__ import absolute_import
|
||||
import unittest
|
||||
|
||||
import shutil
|
||||
import os
|
||||
import sys
|
||||
import random
|
||||
import copy
|
||||
import os
|
||||
import random
|
||||
import shutil
|
||||
import sys
|
||||
import unittest
|
||||
from string import letters
|
||||
|
||||
"""
|
||||
|
@ -31,9 +31,10 @@ if not __file__:
|
|||
__file__ = sys.argv[0]
|
||||
sys.path.append(os.path.join(os.path.dirname(__file__), ".."))
|
||||
|
||||
from MozZipFile import ZipFile
|
||||
import zipfile
|
||||
|
||||
from MozZipFile import ZipFile
|
||||
|
||||
leafs = ("firstdir/oneleaf", "seconddir/twoleaf", "thirddir/with/sub/threeleaf")
|
||||
_lengths = map(lambda n: n * 64, [16, 64, 80])
|
||||
lengths = 3
|
||||
|
|
Загрузка…
Ссылка в новой задаче