Skip to content

Commit

Permalink
remove yield defer.returnValue
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Tardy <tardyp@gmail.com>
  • Loading branch information
tardyp committed Jul 14, 2015
1 parent c31a80b commit e92551e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 10 deletions.
6 changes: 0 additions & 6 deletions master/buildbot/statistics/capture.py
Expand Up @@ -112,9 +112,6 @@ def consumer(self, routingKey, msg):
yield threads.deferToThread(svc.postStatsValue, post_data, series_name,
context)

else:
yield defer.returnValue(None)


class CaptureBuildStartTime(CaptureBuildTimes):

Expand Down Expand Up @@ -209,6 +206,3 @@ def consumer(self, routingKey, msg):
for svc in self.parent_svcs:
yield threads.deferToThread(svc.postStatsValue, post_data, series_name,
context)

else:
yield defer.returnValue(None)
1 change: 0 additions & 1 deletion master/buildbot/statistics/stats_service.py
Expand Up @@ -89,4 +89,3 @@ def yieldMetricsValue(self, data_name, post_data, buildid):
msg['build_data'] = build_data

self.master.mq.produce(routingKey, msg)
yield defer.returnValue(None)
3 changes: 0 additions & 3 deletions master/buildbot/test/unit/test_stats_service.py
Expand Up @@ -200,7 +200,6 @@ def end_build_call_consumers(self):
state_string=u'',
results=0,
))
yield defer.returnValue(None)

@staticmethod
def identity(f, *args, **kwargs):
Expand Down Expand Up @@ -336,7 +335,6 @@ def test_capture_data(self):
'builder1-test',
{'build_number': '1', 'builder_name': 'builder1'}
)], self.fake_storage_service.stored_data)
yield defer.returnValue(None)

@defer.inlineCallbacks
def test_capture_data_alt_callback(self):
Expand All @@ -359,4 +357,3 @@ def cb(*args, **kwargs):
'builder1-test',
{'build_number': '1', 'builder_name': 'builder1'}
)], self.fake_storage_service.stored_data)
yield defer.returnValue(None)

0 comments on commit e92551e

Please sign in to comment.