Bug 1176642 - Remove unused imports; r=glandium
authorGregory Szorc <gps@mozilla.com>
Thu, 25 Jun 2015 12:16:38 -0700
changeset 282556 c62732d440bd8cf6e2d5f326fbc01eac9cdfd5eb
parent 282555 bca014d5508abae9d9cfd674be74fa62d3db6b03
child 282557 b6ab3b5ac90c920282b8eb13abb0180a9a66a667
push id897
push userjlund@mozilla.com
push dateMon, 14 Sep 2015 18:56:12 +0000
treeherdermozilla-release@9411e2d2b214 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium
bugs1176642
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1176642 - Remove unused imports; r=glandium
addon-sdk/mach_commands.py
build/valgrind/mach_commands.py
python/mach_commands.py
python/mozbuild/mozbuild/action/generate_browsersearch.py
python/mozbuild/mozbuild/backend/mach_commands.py
python/mozbuild/mozbuild/backend/recursivemake.py
python/mozbuild/mozbuild/dotproperties.py
python/mozbuild/mozbuild/frontend/data.py
python/mozbuild/mozbuild/frontend/emitter.py
python/mozbuild/mozbuild/mach_commands.py
python/mozbuild/mozbuild/preprocessor.py
python/mozbuild/mozbuild/util.py
services/common/tests/mach_commands.py
testing/luciddream/mach_commands.py
testing/marionette/mach_commands.py
testing/taskcluster/mach_commands.py
tools/docs/mach_commands.py
--- a/addon-sdk/mach_commands.py
+++ b/addon-sdk/mach_commands.py
@@ -1,17 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Integrates the xpcshell test runner with mach.
 
 import os
-import re
-import sys
 
 import mozpack.path as mozpath
 
 from mozbuild.base import (
     MachCommandBase,
     MozbuildObject,
 )
 
--- a/build/valgrind/mach_commands.py
+++ b/build/valgrind/mach_commands.py
@@ -1,16 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import print_function, unicode_literals
 
 import os
-import re
 import subprocess
 
 from mach.decorators import (
     Command,
     CommandArgument,
     CommandProvider,
 )
 from mozbuild.base import (
--- a/python/mach_commands.py
+++ b/python/mach_commands.py
@@ -4,17 +4,16 @@
 
 from __future__ import print_function, unicode_literals
 
 import argparse
 import glob
 import logging
 import mozpack.path as mozpath
 import os
-import sys
 
 from mozbuild.base import (
     MachCommandBase,
 )
 
 from mach.decorators import (
     CommandArgument,
     CommandProvider,
--- a/python/mozbuild/mozbuild/action/generate_browsersearch.py
+++ b/python/mozbuild/mozbuild/action/generate_browsersearch.py
@@ -33,17 +33,16 @@ e.g. raw/browsersearch.json, raw-pt-rBR/
 from __future__ import (
     print_function,
     unicode_literals,
 )
 
 import argparse
 import codecs
 import json
-import re
 import sys
 import os
 
 from mozbuild.dotproperties import (
     DotProperties,
 )
 from mozbuild.util import (
     FileAvoidWrite,
--- a/python/mozbuild/mozbuild/backend/mach_commands.py
+++ b/python/mozbuild/mozbuild/backend/mach_commands.py
@@ -1,17 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import print_function, unicode_literals
 
 import argparse
-import glob
-import logging
 import os
 import sys
 import subprocess
 import which
 
 from mozbuild.backend.cpp_eclipse import CppEclipseBackend
 
 from mozbuild.base import (
--- a/python/mozbuild/mozbuild/backend/recursivemake.py
+++ b/python/mozbuild/mozbuild/backend/recursivemake.py
@@ -1,16 +1,14 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import unicode_literals
 
-import errno
-import json
 import logging
 import os
 import re
 import types
 
 from collections import (
     defaultdict,
     namedtuple,
--- a/python/mozbuild/mozbuild/dotproperties.py
+++ b/python/mozbuild/mozbuild/dotproperties.py
@@ -5,17 +5,16 @@
 # This file contains utility functions for reading .properties files, like
 # region.properties.
 
 
 from __future__ import unicode_literals
 
 import codecs
 import re
-import os
 import sys
 
 if sys.version_info[0] == 3:
     str_type = str
 else:
     str_type = basestring
 
 class DotProperties:
--- a/python/mozbuild/mozbuild/frontend/data.py
+++ b/python/mozbuild/mozbuild/frontend/data.py
@@ -12,19 +12,16 @@ All data structures of interest are chil
 Logic for populating these data structures is not defined in this class.
 Instead, what we have here are dumb container classes. The emitter module
 contains the code for converting executed mozbuild files into these data
 structures.
 """
 
 from __future__ import unicode_literals
 
-import os
-
-from collections import OrderedDict
 from mozbuild.util import (
     shell_quote,
     StrictOrderingOnAppendList,
 )
 import mozpack.path as mozpath
 from .context import FinalTargetValue
 
 from ..util import (
--- a/python/mozbuild/mozbuild/frontend/emitter.py
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
@@ -1,16 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import unicode_literals
 
 import itertools
-import json
 import logging
 import os
 import traceback
 import sys
 import time
 
 from collections import defaultdict, OrderedDict
 from mach.mixin.logging import LoggingMixin
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1,16 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, # You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import print_function, unicode_literals
 
 import argparse
-import itertools
 import json
 import logging
 import operator
 import os
 import subprocess
 import sys
 
 import mozpack.path as mozpath
--- a/python/mozbuild/mozbuild/preprocessor.py
+++ b/python/mozbuild/mozbuild/preprocessor.py
@@ -19,17 +19,16 @@ unary :
 value :
   [0-9]+ # integer
   | 'defined(' \w+ ')'
   | \w+  # string identifier or value;
 """
 
 import sys
 import os
-import os.path
 import re
 from optparse import OptionParser
 import errno
 from makeutil import Makefile
 
 # hack around win32 mangling our line endings
 # http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65443
 if sys.platform == "win32":
--- a/python/mozbuild/mozbuild/util.py
+++ b/python/mozbuild/mozbuild/util.py
@@ -3,17 +3,16 @@
 # You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # This file contains miscellaneous utility functions that don't belong anywhere
 # in particular.
 
 from __future__ import unicode_literals
 
 import collections
-import copy
 import difflib
 import errno
 import functools
 import hashlib
 import itertools
 import os
 import stat
 import sys
--- a/services/common/tests/mach_commands.py
+++ b/services/common/tests/mach_commands.py
@@ -1,20 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import unicode_literals
 
-import logging
 import mozpack.path as mozpath
-import os
-import sys
-import warnings
-import which
 
 from mozbuild.base import (
     MachCommandBase,
 )
 
 from mach.decorators import (
     CommandArgument,
     CommandProvider,
--- a/testing/luciddream/mach_commands.py
+++ b/testing/luciddream/mach_commands.py
@@ -1,19 +1,15 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 # Integrates luciddream test runner with mach.
 
 import os
-import re
-import sys
-
-import mozpack.path as mozpath
 
 from mozbuild.base import (
     MachCommandBase,
     MachCommandConditions as conditions,
     MozbuildObject,
 )
 
 from mach.decorators import (
--- a/testing/marionette/mach_commands.py
+++ b/testing/marionette/mach_commands.py
@@ -1,15 +1,14 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import unicode_literals
 
-import imp
 import os
 import sys
 import argparse
 
 from mozlog.structured import commandline
 
 from mozbuild.base import (
     MachCommandBase,
--- a/testing/taskcluster/mach_commands.py
+++ b/testing/taskcluster/mach_commands.py
@@ -1,19 +1,17 @@
 # -*- coding: utf-8 -*-
 
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 import os
-import os.path
 import json
 import copy
-import datetime
 import sys
 import urllib2
 
 from mach.decorators import (
     CommandArgument,
     CommandProvider,
     Command,
 )
--- a/tools/docs/mach_commands.py
+++ b/tools/docs/mach_commands.py
@@ -8,17 +8,16 @@ import os
 
 from mach.decorators import (
     CommandArgument,
     CommandProvider,
     Command,
 )
 
 from mozbuild.base import MachCommandBase
-from mozbuild.frontend.reader import BuildReader
 
 
 @CommandProvider
 class Documentation(MachCommandBase):
     """Helps manage in-tree documentation."""
 
     @Command('build-docs', category='build-dev',
         description='Generate documentation for the tree.')