Skip to content

Commit

Permalink
simplify process/buildstep
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Sobolev committed Feb 21, 2015
1 parent 2d78b70 commit eb25b89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions master/buildbot/process/buildstep.py
Expand Up @@ -301,8 +301,8 @@ class BuildStep(results.ResultComputingConfigMixin,
def __init__(self, **kwargs):
for p in self.__class__.parms:
if p in kwargs:
setattr(self, p, kwargs[p])
del kwargs[p]
setattr(self, p, kwargs.pop(p))

if kwargs:
config.error("%s.__init__ got unexpected keyword argument(s) %s"
% (self.__class__, kwargs.keys()))
Expand Down

0 comments on commit eb25b89

Please sign in to comment.