mirror of
https://github.com/servo/servo.git
synced 2025-06-11 01:50:10 +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 mach.decorators import (
|
||||
CommandProvider,
|
||||
Command,
|
||||
)
|
||||
from mach.decorators import Command
|
||||
|
||||
|
||||
#@CommandProvider
|
||||
|
|
|
@ -16,7 +16,6 @@ import os
|
|||
import sys
|
||||
import traceback
|
||||
import uuid
|
||||
import sys
|
||||
|
||||
from .base import (
|
||||
CommandContext,
|
||||
|
@ -26,11 +25,7 @@ from .base import (
|
|||
UnrecognizedArgumentError,
|
||||
)
|
||||
|
||||
from .decorators import (
|
||||
CommandArgument,
|
||||
CommandProvider,
|
||||
Command,
|
||||
)
|
||||
from .decorators import CommandProvider
|
||||
|
||||
from .config import ConfigSettings
|
||||
from .dispatcher import CommandAction
|
||||
|
|
|
@ -9,7 +9,6 @@ import os
|
|||
import unittest
|
||||
|
||||
from mach.main import Mach
|
||||
from mach.base import CommandContext
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
|
|
@ -4,8 +4,6 @@
|
|||
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import time
|
||||
|
||||
from mach.decorators import (
|
||||
CommandArgument,
|
||||
CommandProvider,
|
||||
|
|
|
@ -11,8 +11,6 @@ from mach.base import MachError
|
|||
from mach.test.common import TestBase
|
||||
from mock import patch
|
||||
|
||||
from mozunit import main
|
||||
|
||||
|
||||
here = os.path.abspath(os.path.dirname(__file__))
|
||||
|
||||
|
|
|
@ -7,8 +7,6 @@ from collections import (
|
|||
namedtuple,
|
||||
)
|
||||
|
||||
from mozlog.structured.structuredlog import log_levels
|
||||
|
||||
RunSummary = namedtuple("RunSummary",
|
||||
("unexpected_statuses",
|
||||
"expected_statuses",
|
||||
|
|
|
@ -55,7 +55,7 @@ def notify_win(title, text):
|
|||
|
||||
|
||||
def notify_darwin(title, text):
|
||||
import AppKit, Foundation, objc
|
||||
import Foundation, objc
|
||||
|
||||
NSUserNotification = objc.lookUpClass("NSUserNotification")
|
||||
NSUserNotificationCenter = objc.lookUpClass("NSUserNotificationCenter")
|
||||
|
|
|
@ -1,15 +1,10 @@
|
|||
from __future__ import print_function, unicode_literals
|
||||
|
||||
import argparse
|
||||
import os
|
||||
import os.path as path
|
||||
from os import chdir
|
||||
import subprocess
|
||||
import SimpleHTTPServer
|
||||
import SocketServer
|
||||
import mozdebug
|
||||
import sys
|
||||
from shutil import copytree, rmtree, ignore_patterns, copy2
|
||||
from shutil import copytree, rmtree, copy2
|
||||
|
||||
from mach.registrar import Registrar
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue