Bug 1790816 - Reformat browser/ with isort. r=linter-reviewers,search-reviewers,Standard8 DONTBUILD

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162667
This commit is contained in:
Marco Castelluccio 2022-11-22 11:09:34 +00:00
parent 2d8a5d819f
commit 6d04d33abd
9 changed files with 24 additions and 18 deletions

View File

@ -4,10 +4,11 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
from __future__ import absolute_import, print_function, unicode_literals
import io
from optparse import OptionParser
import sys
import re
import sys
from optparse import OptionParser
o = OptionParser()
o.add_option("--buildid", dest="buildid")

View File

@ -1,9 +1,10 @@
from __future__ import absolute_import, print_function
import os
import time
from marionette_harness import MarionetteTestCase
from marionette_driver.errors import NoAlertPresentException
from marionette_harness import MarionetteTestCase
# Holds info about things we need to cleanup after the tests are done.

View File

@ -4,6 +4,7 @@
# 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

View File

@ -6,7 +6,7 @@ from __future__ import absolute_import
from urllib.parse import quote
from marionette_driver import errors, Wait
from marionette_driver import Wait, errors
from marionette_driver.keys import Keys
from marionette_harness import MarionetteTestCase, WindowManagerMixin
@ -245,8 +245,8 @@ class SessionStoreTestCase(WindowManagerMixin, MarionetteTestCase):
:raises: WindowsError: if a Windows API call fails
"""
import ctypes
from ctypes import Structure, POINTER, WINFUNCTYPE, windll, pointer, WinError
from ctypes.wintypes import HANDLE, DWORD, BOOL, WCHAR, UINT, ULONG, LPCWSTR
from ctypes import POINTER, WINFUNCTYPE, Structure, WinError, pointer, windll
from ctypes.wintypes import BOOL, DWORD, HANDLE, LPCWSTR, UINT, ULONG, WCHAR
# set up Windows SDK types
OpenProcess = windll.kernel32.OpenProcess

View File

@ -4,8 +4,9 @@
# add this directory to the path
from __future__ import absolute_import
import sys
import os
import sys
sys.path.append(os.path.dirname(__file__))

View File

@ -4,8 +4,9 @@
# add this directory to the path
from __future__ import absolute_import
import sys
import os
import sys
sys.path.append(os.path.dirname(__file__))

View File

@ -4,8 +4,9 @@
# add this directory to the path
from __future__ import absolute_import
import sys
import os
import sys
sys.path.append(os.path.dirname(__file__))

View File

@ -15,8 +15,12 @@ paths by default when using macOS's /usr/bin/python.
Includes generous amount of logging to aid debugging for use in automated tests.
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import absolute_import, print_function
import argparse
import logging
import os
import sys
#
# These Objective-C bindings imports are included in the import path by default
@ -27,11 +31,6 @@ from __future__ import print_function
from AppKit import NSScreen, NSWorkspace
from Cocoa import NSURL
import argparse
import logging
import os
import sys
def main():
parser = argparse.ArgumentParser(

View File

@ -5,13 +5,14 @@
# 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, unicode_literals, print_function
from __future__ import absolute_import, print_function, unicode_literals
import buildconfig
import codecs
import re
import shutil
import buildconfig
def main(output, ini, ini_append=None, locale=None):
fixup_re = re.compile("^(Info|Title)Text=")