mirror of
https://github.com/servo/servo.git
synced 2025-06-12 10:24:43 +00:00
Remove unused imports in the Python files
Found using flake8
This commit is contained in:
parent
c63fc4dc13
commit
7bddb1185f
8 changed files with 4 additions and 24 deletions
|
@ -6,10 +6,7 @@ from __future__ import print_function, unicode_literals
|
||||||
|
|
||||||
from textwrap import TextWrapper
|
from textwrap import TextWrapper
|
||||||
|
|
||||||
from mach.decorators import (
|
from mach.decorators import Command
|
||||||
CommandProvider,
|
|
||||||
Command,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
#@CommandProvider
|
#@CommandProvider
|
||||||
|
|
|
@ -16,7 +16,6 @@ import os
|
||||||
import sys
|
import sys
|
||||||
import traceback
|
import traceback
|
||||||
import uuid
|
import uuid
|
||||||
import sys
|
|
||||||
|
|
||||||
from .base import (
|
from .base import (
|
||||||
CommandContext,
|
CommandContext,
|
||||||
|
@ -26,11 +25,7 @@ from .base import (
|
||||||
UnrecognizedArgumentError,
|
UnrecognizedArgumentError,
|
||||||
)
|
)
|
||||||
|
|
||||||
from .decorators import (
|
from .decorators import CommandProvider
|
||||||
CommandArgument,
|
|
||||||
CommandProvider,
|
|
||||||
Command,
|
|
||||||
)
|
|
||||||
|
|
||||||
from .config import ConfigSettings
|
from .config import ConfigSettings
|
||||||
from .dispatcher import CommandAction
|
from .dispatcher import CommandAction
|
||||||
|
|
|
@ -9,7 +9,6 @@ import os
|
||||||
import unittest
|
import unittest
|
||||||
|
|
||||||
from mach.main import Mach
|
from mach.main import Mach
|
||||||
from mach.base import CommandContext
|
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import time
|
|
||||||
|
|
||||||
from mach.decorators import (
|
from mach.decorators import (
|
||||||
CommandArgument,
|
CommandArgument,
|
||||||
CommandProvider,
|
CommandProvider,
|
||||||
|
|
|
@ -11,8 +11,6 @@ from mach.base import MachError
|
||||||
from mach.test.common import TestBase
|
from mach.test.common import TestBase
|
||||||
from mock import patch
|
from mock import patch
|
||||||
|
|
||||||
from mozunit import main
|
|
||||||
|
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,6 @@ from collections import (
|
||||||
namedtuple,
|
namedtuple,
|
||||||
)
|
)
|
||||||
|
|
||||||
from mozlog.structured.structuredlog import log_levels
|
|
||||||
|
|
||||||
RunSummary = namedtuple("RunSummary",
|
RunSummary = namedtuple("RunSummary",
|
||||||
("unexpected_statuses",
|
("unexpected_statuses",
|
||||||
"expected_statuses",
|
"expected_statuses",
|
||||||
|
|
|
@ -55,7 +55,7 @@ def notify_win(title, text):
|
||||||
|
|
||||||
|
|
||||||
def notify_darwin(title, text):
|
def notify_darwin(title, text):
|
||||||
import AppKit, Foundation, objc
|
import Foundation, objc
|
||||||
|
|
||||||
NSUserNotification = objc.lookUpClass("NSUserNotification")
|
NSUserNotification = objc.lookUpClass("NSUserNotification")
|
||||||
NSUserNotificationCenter = objc.lookUpClass("NSUserNotificationCenter")
|
NSUserNotificationCenter = objc.lookUpClass("NSUserNotificationCenter")
|
||||||
|
|
|
@ -1,15 +1,10 @@
|
||||||
from __future__ import print_function, unicode_literals
|
from __future__ import print_function, unicode_literals
|
||||||
|
|
||||||
import argparse
|
|
||||||
import os
|
import os
|
||||||
import os.path as path
|
import os.path as path
|
||||||
from os import chdir
|
|
||||||
import subprocess
|
import subprocess
|
||||||
import SimpleHTTPServer
|
|
||||||
import SocketServer
|
|
||||||
import mozdebug
|
|
||||||
import sys
|
import sys
|
||||||
from shutil import copytree, rmtree, ignore_patterns, copy2
|
from shutil import copytree, rmtree, copy2
|
||||||
|
|
||||||
from mach.registrar import Registrar
|
from mach.registrar import Registrar
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue