From 71f3223f4dc7769a49580c971dacd72f0b849c0b Mon Sep 17 00:00:00 2001 From: Mikhail Sobolev Date: Sat, 17 Jan 2015 15:35:10 +0200 Subject: [PATCH] more cosmetics --- master/buildbot/status/github.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/master/buildbot/status/github.py b/master/buildbot/status/github.py index efec4389dd2..2c7e064b524 100644 --- a/master/buildbot/status/github.py +++ b/master/buildbot/status/github.py @@ -33,14 +33,14 @@ class GitHubStatus(StatusReceiverMultiService): - implements(IStatusReceiver) - """ Send build status to GitHub. For more details see Buildbot's user manual. """ + implements(IStatusReceiver) + def __init__(self, token, repoOwner, repoName, sha=None, startDescription=None, endDescription=None, baseURL=None): @@ -60,6 +60,8 @@ def __init__(self, token, repoOwner, repoName, sha=None, self._github = GitHubAPI(oauth2_token=token, baseURL=baseURL) + self._status = None + def startService(self): StatusReceiverMultiService.startService(self) self._status = self.parent.getStatus() @@ -69,7 +71,7 @@ def stopService(self): StatusReceiverMultiService.stopService(self) self._status.unsubscribe(self) - def builderAdded(self, name, builder): + def builderAdded(self, name_, builder_): """ Subscribe to all builders. """ @@ -93,7 +95,7 @@ def _sendStartStatus(self, builderName, build): if not status: defer.returnValue(None) - (startTime, endTime) = build.getTimes() + (startTime, _) = build.getTimes() description = yield build.render(self._startDescription)