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

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

Issue 1846093002: Revert of Remove unused imports in webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 11 matching lines...) Expand all
22 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 23 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
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 CommitAnnouncerThread 32 from webkitpy.tool.bot.commitannouncer import CommitAnnouncer, CommitAnnouncerTh read
33 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand 33 from webkitpy.tool.multicommandtool import AbstractDeclarativeCommand
34 34
35 _log = logging.getLogger(__name__) 35 _log = logging.getLogger(__name__)
36 announce_path = "third_party/WebKit" 36 announce_path = "third_party/WebKit"
37 37
38 38
39 class CommitAnnouncerCommand(AbstractDeclarativeCommand): 39 class CommitAnnouncerCommand(AbstractDeclarativeCommand):
40 name = "commit-announcer" 40 name = "commit-announcer"
41 help_text = "Start an IRC bot for announcing new git commits." 41 help_text = "Start an IRC bot for announcing new git commits."
42 show_in_main_help = True 42 show_in_main_help = True
(...skipping 17 matching lines...) Expand all
60 except Exception, e: 60 except Exception, e:
61 _log.error("Unexpected error:") 61 _log.error("Unexpected error:")
62 _log.error(traceback.format_exc()) 62 _log.error(traceback.format_exc())
63 63
64 if bot_thread.is_alive(): 64 if bot_thread.is_alive():
65 _log.info("Disconnecting bot") 65 _log.info("Disconnecting bot")
66 bot_thread.stop() 66 bot_thread.stop()
67 else: 67 else:
68 _log.info("Bot offline") 68 _log.info("Bot offline")
69 _log.info("Done") 69 _log.info("Done")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698