Skip to content

Commit

Permalink
Remove duplicated class (shouldn't have come here)
Browse files Browse the repository at this point in the history
  • Loading branch information
benallard committed Dec 3, 2014
1 parent 3f55eb2 commit 601109c
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions master/buildbot/status/irc.py
Expand Up @@ -40,30 +40,6 @@ def __init__(self, string="Invalid usage", *more):
ValueError.__init__(self, string, *more)


class ForceOptions(usage.Options):
optParameters = [
["builder", None, None, "which Builder to start"],
["branch", None, None, "which branch to build"],
["revision", None, None, "which revision to build"],
["reason", None, None, "the reason for starting the build"],
["props", None, None,
"A set of properties made available in the build environment, "
"format is --properties=prop1=value1,prop2=value2,.. "
"option can be specified multiple times."],
]

def parseArgs(self, *args):
args = list(args)
if len(args) > 0:
if self['builder'] is not None:
raise UsageError("--builder provided in two ways")
self['builder'] = args.pop(0)
if len(args) > 0:
if self['reason'] is not None:
raise UsageError("--reason provided in two ways")
self['reason'] = " ".join(args)


class IrcStatusBot(StatusBot, irc.IRCClient):

"""I represent the buildbot to an IRC server.
Expand Down

0 comments on commit 601109c

Please sign in to comment.