Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/commitannouncer.py

Issue 1950213002: Remove unused imports in webkitpy with using autoflake. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 Google Inc. All rights reserved. 1 # Copyright (c) 2013 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 13 matching lines...) Expand all
24 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 25
26 import logging 26 import logging
27 from optparse import make_option 27 from optparse import make_option
28 import time 28 import time
29 import traceback 29 import traceback
30 30
31 from webkitpy.common.config.irc import update_wait_seconds 31 from webkitpy.common.config.irc import update_wait_seconds
32 from webkitpy.tool.bot.commitannouncer import CommitAnnouncer, CommitAnnouncerTh read 32 from webkitpy.tool.bot.commitannouncer import CommitAnnouncer, CommitAnnouncerTh read
33 from webkitpy.tool.multicommandtool import Command 33 from webkitpy.tool.multicommandtool import Command
34 from webkitpy.tool.bot.commitannouncer import CommitAnnouncer
35 from webkitpy.tool.bot.commitannouncer import CommitAnnouncerThread
36 from webkitpy.tool.multicommandtool import Command
34 37
35 _log = logging.getLogger(__name__) 38 _log = logging.getLogger(__name__)
36 announce_path = "third_party/WebKit" 39 announce_path = "third_party/WebKit"
37 40
38 41
39 class CommitAnnouncerCommand(Command): 42 class CommitAnnouncerCommand(Command):
40 name = "commit-announcer" 43 name = "commit-announcer"
41 help_text = "Start an IRC bot for announcing new git commits." 44 help_text = "Start an IRC bot for announcing new git commits."
42 show_in_main_help = True 45 show_in_main_help = True
43 46
(...skipping 16 matching lines...) Expand all
60 except Exception, e: 63 except Exception, e:
61 _log.error("Unexpected error:") 64 _log.error("Unexpected error:")
62 _log.error(traceback.format_exc()) 65 _log.error(traceback.format_exc())
63 66
64 if bot_thread.is_alive(): 67 if bot_thread.is_alive():
65 _log.info("Disconnecting bot") 68 _log.info("Disconnecting bot")
66 bot_thread.stop() 69 bot_thread.stop()
67 else: 70 else:
68 _log.info("Bot offline") 71 _log.info("Bot offline")
69 _log.info("Done") 72 _log.info("Done")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698