Skip to content

Commit

Permalink
use capitalize as per review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Tardy <tardyp@gmail.com>
  • Loading branch information
tardyp committed Sep 13, 2015
1 parent 4c5cc4e commit 5624c16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/buildbot/data/builds.py
Expand Up @@ -103,7 +103,7 @@ def startConsuming(self, callback, options, kwargs):

def control(self, action, args, kwargs):
# we convert the action into a mixedCase method name
action_method = getattr(self, "action" + action[0].upper() + action[1:])
action_method = getattr(self, "action" + action.capitalize())
if action_method is None:
raise ValueError("action: {} is not supported".format(action))
return action_method(args, kwargs)
Expand Down

0 comments on commit 5624c16

Please sign in to comment.