Remove unused imports in the Python files

Found using flake8
This commit is contained in:
Corey Farwell 2015-05-31 19:15:32 -04:00
parent c63fc4dc13
commit 7bddb1185f
8 changed files with 4 additions and 24 deletions

View file

@ -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

View file

@ -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

View file

@ -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__))

View file

@ -4,8 +4,6 @@
from __future__ import unicode_literals
import time
from mach.decorators import (
CommandArgument,
CommandProvider,

View file

@ -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__))

View file

@ -7,8 +7,6 @@ from collections import (
namedtuple,
)
from mozlog.structured.structuredlog import log_levels
RunSummary = namedtuple("RunSummary",
("unexpected_statuses",
"expected_statuses",

View file

@ -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")

View file

@ -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