Skip to content

Commit

Permalink
more cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev committed Jan 31, 2015
1 parent 2fa35a1 commit 61b5f85
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions master/buildbot/status/github.py
Expand Up @@ -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):
Expand All @@ -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()
Expand All @@ -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.
"""
Expand All @@ -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)

Expand Down

0 comments on commit 61b5f85

Please sign in to comment.