Commit c3ccf5a2 authored by tony@chromium.org's avatar tony@chromium.org
Browse files

2011-02-07 Tony Chang <tony@chromium.org>

        Reviewed by Adam Barth.

        clean up python imports
        https://bugs.webkit.org/show_bug.cgi?id=53966

        Convert "import A.B.C.D as D" to "from A.B.C import D" and
        make some imports absolute as required by PEP-8

        * Scripts/webkitpy/common/checkout/scm.py:
        * Scripts/webkitpy/common/net/irc/ircbot.py:
        * Scripts/webkitpy/common/system/logutils.py:
        * Scripts/webkitpy/common/system/logutils_unittest.py:
        * Scripts/webkitpy/layout_tests/deduplicate_tests.py:
        * Scripts/webkitpy/layout_tests/port/chromium.py:
        * Scripts/webkitpy/layout_tests/port/mac.py: Remove some unused imports
        * Scripts/webkitpy/layout_tests/port/webkit.py:
        * Scripts/webkitpy/layout_tests/update_webgl_conformance_tests.py:
        * Scripts/webkitpy/tool/bot/irc_command.py:
        * Scripts/webkitpy/tool/bot/sheriffircbot.py:
        * Scripts/webkitpy/tool/commands/download.py:
        * Scripts/webkitpy/tool/commands/prettydiff.py:
        * Scripts/webkitpy/tool/commands/queries.py:
        * Scripts/webkitpy/tool/commands/roll.py:
        * Scripts/webkitpy/tool/commands/stepsequence.py:
        * Scripts/webkitpy/tool/commands/upload.py:
        * Scripts/webkitpy/tool/main.py:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77913 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 876507a3
2011-02-07 Tony Chang <tony@chromium.org>
Reviewed by Adam Barth.
clean up python imports
https://bugs.webkit.org/show_bug.cgi?id=53966
Convert "import A.B.C.D as D" to "from A.B.C import D" and
make some imports absolute as required by PEP-8
* Scripts/webkitpy/common/checkout/scm.py:
* Scripts/webkitpy/common/net/irc/ircbot.py:
* Scripts/webkitpy/common/system/logutils.py:
* Scripts/webkitpy/common/system/logutils_unittest.py:
* Scripts/webkitpy/layout_tests/deduplicate_tests.py:
* Scripts/webkitpy/layout_tests/port/chromium.py:
* Scripts/webkitpy/layout_tests/port/mac.py: Remove some unused imports
* Scripts/webkitpy/layout_tests/port/webkit.py:
* Scripts/webkitpy/layout_tests/update_webgl_conformance_tests.py:
* Scripts/webkitpy/tool/bot/irc_command.py:
* Scripts/webkitpy/tool/bot/sheriffircbot.py:
* Scripts/webkitpy/tool/commands/download.py:
* Scripts/webkitpy/tool/commands/prettydiff.py:
* Scripts/webkitpy/tool/commands/queries.py:
* Scripts/webkitpy/tool/commands/roll.py:
* Scripts/webkitpy/tool/commands/stepsequence.py:
* Scripts/webkitpy/tool/commands/upload.py:
* Scripts/webkitpy/tool/main.py:
2011-02-07 James Robinson <jamesr@chromium.org>
 
Reviewed by Adam Barth.
......@@ -34,10 +34,10 @@ import re
import sys
import shutil
from webkitpy.common.system.executive import Executive, run_command, ScriptError
from webkitpy.common.system.deprecated_logging import error, log
import webkitpy.common.system.ospath as ospath
from webkitpy.common.memoized import memoized
from webkitpy.common.system.deprecated_logging import error, log
from webkitpy.common.system.executive import Executive, run_command, ScriptError
from webkitpy.common.system import ospath
def find_checkout_root():
......
......@@ -26,7 +26,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import webkitpy.common.config.irc as config_irc
from webkitpy.common.config import irc as config_irc
from webkitpy.common.thread.messagepump import MessagePump, MessagePumpDelegate
from webkitpy.thirdparty.autoinstalled.irc import ircbot
......
......@@ -83,7 +83,7 @@ def get_logger(path):
Sample usage:
import webkitpy.common.system.logutils as logutils
from webkitpy.common.system import logutils
_log = logutils.get_logger(__file__)
......
......@@ -28,7 +28,7 @@ import unittest
from webkitpy.common.system.logtesting import LogTesting
from webkitpy.common.system.logtesting import TestLogStream
import webkitpy.common.system.logutils as logutils
from webkitpy.common.system import logutils
class GetLoggerTest(unittest.TestCase):
......
......@@ -36,11 +36,12 @@ import os
import subprocess
import sys
import re
import webkitpy.common.checkout.scm as scm
import webkitpy.common.system.executive as executive
import webkitpy.common.system.logutils as logutils
import webkitpy.common.system.ospath as ospath
import webkitpy.layout_tests.port.factory as port_factory
from webkitpy.common.checkout import scm
from webkitpy.common.system import executive
from webkitpy.common.system import logutils
from webkitpy.common.system import ospath
from webkitpy.layout_tests.port import factory as port_factory
_log = logutils.get_logger(__file__)
......
......@@ -41,10 +41,9 @@ import webbrowser
from webkitpy.common.system import executive
from webkitpy.common.system.path import cygpath
from webkitpy.layout_tests.layout_package import test_expectations
import base
import http_server
import websocket_server
from webkitpy.layout_tests.port import base
from webkitpy.layout_tests.port import http_server
from webkitpy.layout_tests.port import websocket_server
_log = logging.getLogger("webkitpy.layout_tests.port.chromium")
......
......@@ -33,9 +33,7 @@ import os
import platform
import signal
import webkitpy.common.system.ospath as ospath
import webkitpy.layout_tests.port.server_process as server_process
from webkitpy.layout_tests.port.webkit import WebKitPort, WebKitDriver
from webkitpy.layout_tests.port.webkit import WebKitPort
_log = logging.getLogger("webkitpy.layout_tests.port.mac")
......
......@@ -40,9 +40,9 @@ import sys
import time
import webbrowser
import webkitpy.common.system.ospath as ospath
import webkitpy.layout_tests.port.base as base
import webkitpy.layout_tests.port.server_process as server_process
from webkitpy.common.system import ospath
from webkitpy.layout_tests.port import base
from webkitpy.layout_tests.port import server_process
_log = logging.getLogger("webkitpy.layout_tests.port.webkit")
......
......@@ -31,7 +31,7 @@ import optparse
import os
import re
import sys
import webkitpy.common.checkout.scm as scm
from webkitpy.common.checkout import scm
_log = logging.getLogger("webkitpy.layout_tests."
"update-webgl-conformance-tests")
......
......@@ -27,7 +27,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import random
import webkitpy.common.config.irc as config_irc
from webkitpy.common.config import irc as config_irc
from webkitpy.common.config import urls
from webkitpy.common.net.bugzilla import parse_bug_id
......
......@@ -26,7 +26,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import webkitpy.tool.bot.irc_command as irc_command
from webkitpy.tool.bot import irc_command
from webkitpy.common.net.irc.ircbot import IRCBotDelegate
from webkitpy.common.thread.threadedmessagequeue import ThreadedMessageQueue
......
......@@ -29,7 +29,7 @@
import os
import webkitpy.tool.steps as steps
from webkitpy.tool import steps
from webkitpy.common.checkout.changelog import ChangeLog
from webkitpy.common.config import urls
......
......@@ -27,7 +27,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand
import webkitpy.tool.steps as steps
from webkitpy.tool import steps
class PrettyDiff(AbstractSequencedCommand):
......
......@@ -30,7 +30,7 @@
from optparse import make_option
import webkitpy.tool.steps as steps
from webkitpy.tool import steps
from webkitpy.common.checkout.commitinfo import CommitInfo
from webkitpy.common.config.committers import CommitterList
......
......@@ -28,7 +28,7 @@
from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand
import webkitpy.tool.steps as steps
from webkitpy.tool import steps
class RollChromiumDEPS(AbstractSequencedCommand):
......
......@@ -26,12 +26,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import webkitpy.tool.steps as steps
from webkitpy.tool import steps
from webkitpy.common.system.executive import ScriptError
from webkitpy.common.checkout.scm import CheckoutNeedsUpdate
from webkitpy.tool.bot.queueengine import QueueEngine
from webkitpy.common.system.deprecated_logging import log
from webkitpy.common.system.executive import ScriptError
from webkitpy.tool.bot.queueengine import QueueEngine
class StepSequenceErrorHandler():
......
......@@ -34,17 +34,17 @@ import sys
from optparse import make_option
import webkitpy.tool.steps as steps
from webkitpy.tool import steps
from webkitpy.common.config.committers import CommitterList
from webkitpy.common.net.bugzilla import parse_bug_id
from webkitpy.common.system.deprecated_logging import error, log
from webkitpy.common.system.user import User
from webkitpy.thirdparty.mock import Mock
from webkitpy.tool.commands.abstractsequencedcommand import AbstractSequencedCommand
from webkitpy.tool.grammar import pluralize, join_with_separators
from webkitpy.tool.comments import bug_comment_from_svn_revision
from webkitpy.tool.grammar import pluralize, join_with_separators
from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
from webkitpy.common.system.deprecated_logging import error, log
class CommitMessageForCurrentDiff(AbstractDeclarativeCommand):
......
......@@ -44,7 +44,7 @@ from webkitpy.common.net.statusserver import StatusServer
from webkitpy.common.system import executive, filesystem, platforminfo, user, workspace
from webkitpy.layout_tests import port
from webkitpy.tool.multicommandtool import MultiCommandTool
import webkitpy.tool.commands as commands
from webkitpy.tool import commands
class WebKitPatch(MultiCommandTool, Host):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment