aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/mach/mach/commands/settings.py5
-rw-r--r--python/mach/mach/main.py7
-rw-r--r--python/mach/mach/test/common.py1
-rw-r--r--python/mach/mach/test/providers/throw.py2
-rw-r--r--python/mach/mach/test/test_entry_point.py2
-rw-r--r--python/mozlog/mozlog/structured/handlers/statushandler.py2
-rw-r--r--python/servo/build_commands.py2
-rw-r--r--python/servo/post_build_commands.py7
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