diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-05-31 18:28:29 -0500 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-05-31 18:28:29 -0500 |
commit | cdc0b88f6984b7cb395a98a59e4829eb62b1e451 (patch) | |
tree | 8dfe755d08a15ed24b19d6b85fff5e3b20c4863f | |
parent | 591614347f9ca5568974861e82c0c918e51e2974 (diff) | |
parent | 7bddb1185fae3047128fc3b7b0b4594874ba4d6c (diff) | |
download | servo-cdc0b88f6984b7cb395a98a59e4829eb62b1e451.tar.gz servo-cdc0b88f6984b7cb395a98a59e4829eb62b1e451.zip |
Auto merge of #6235 - frewsxcv:rm-python-unused-imports, r=metajack
Found using flake8
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6235)
<!-- Reviewable:end -->
-rw-r--r-- | python/mach/mach/commands/settings.py | 5 | ||||
-rw-r--r-- | python/mach/mach/main.py | 7 | ||||
-rw-r--r-- | python/mach/mach/test/common.py | 1 | ||||
-rw-r--r-- | python/mach/mach/test/providers/throw.py | 2 | ||||
-rw-r--r-- | python/mach/mach/test/test_entry_point.py | 2 | ||||
-rw-r--r-- | python/mozlog/mozlog/structured/handlers/statushandler.py | 2 | ||||
-rw-r--r-- | python/servo/build_commands.py | 2 | ||||
-rw-r--r-- | python/servo/post_build_commands.py | 7 |
8 files changed, 4 insertions, 24 deletions
diff --git a/python/mach/mach/commands/settings.py b/python/mach/mach/commands/settings.py index 7223f241fb2..74dc5beb211 100644 --- a/python/mach/mach/commands/settings.py +++ b/python/mach/mach/commands/settings.py @@ -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 diff --git a/python/mach/mach/main.py b/python/mach/mach/main.py index 3c74bd51333..4fa7f2aeeb1 100644 --- a/python/mach/mach/main.py +++ b/python/mach/mach/main.py @@ -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 diff --git a/python/mach/mach/test/common.py b/python/mach/mach/test/common.py index 1c4b1ea90ac..366267b7a66 100644 --- a/python/mach/mach/test/common.py +++ b/python/mach/mach/test/common.py @@ -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__)) diff --git a/python/mach/mach/test/providers/throw.py b/python/mach/mach/test/providers/throw.py index 06bee01eec7..a0088ac18f6 100644 --- a/python/mach/mach/test/providers/throw.py +++ b/python/mach/mach/test/providers/throw.py @@ -4,8 +4,6 @@ from __future__ import unicode_literals -import time - from mach.decorators import ( CommandArgument, CommandProvider, diff --git a/python/mach/mach/test/test_entry_point.py b/python/mach/mach/test/test_entry_point.py index 5bd2c279d45..628ed0dea66 100644 --- a/python/mach/mach/test/test_entry_point.py +++ b/python/mach/mach/test/test_entry_point.py @@ -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__)) diff --git a/python/mozlog/mozlog/structured/handlers/statushandler.py b/python/mozlog/mozlog/structured/handlers/statushandler.py index a5159609f58..4fc5375a686 100644 --- a/python/mozlog/mozlog/structured/handlers/statushandler.py +++ b/python/mozlog/mozlog/structured/handlers/statushandler.py @@ -7,8 +7,6 @@ from collections import ( namedtuple, ) -from mozlog.structured.structuredlog import log_levels - RunSummary = namedtuple("RunSummary", ("unexpected_statuses", "expected_statuses", diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py index 42599bd6766..fd36afec812 100644 --- a/python/servo/build_commands.py +++ b/python/servo/build_commands.py @@ -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") diff --git a/python/servo/post_build_commands.py b/python/servo/post_build_commands.py index 385e71ebee7..0dae99e0a87 100644 --- a/python/servo/post_build_commands.py +++ b/python/servo/post_build_commands.py @@ -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 |