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

Side by Side Diff: appengine/swarming/swarming_bot/api/bot.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties 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 2014 The LUCI Authors. All rights reserved. 1 # Copyright 2014 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Bot interface used in bot_config.py.""" 5 """Bot interface used in bot_config.py."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 import threading 9 import threading
10 import time 10 import time
11 11
12 import os_utilities 12 import os_utilities
13 from utils import net 13 from utils import net
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if t.isAlive(): 182 if t.isAlive():
183 logging.error('Timer thread did not terminate fast enough: %s', t) 183 logging.error('Timer thread did not terminate fast enough: %s', t)
184 184
185 def update_dimensions(self, new_dimensions): 185 def update_dimensions(self, new_dimensions):
186 """Called internally to update Bot.dimensions.""" 186 """Called internally to update Bot.dimensions."""
187 self._attributes['dimensions'] = new_dimensions 187 self._attributes['dimensions'] = new_dimensions
188 188
189 def update_state(self, new_state): 189 def update_state(self, new_state):
190 """Called internally to update Bot.state.""" 190 """Called internally to update Bot.state."""
191 self._attributes['state'] = new_state 191 self._attributes['state'] = new_state
OLDNEW
« no previous file with comments | « appengine/swarming/swarming_bot/__main__.py ('k') | appengine/swarming/swarming_bot/api/bot_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698