Skip to content

Commit

Permalink
DOC: Use setattr(self, ...) instead of self.setattr(...) (scikit-lear…
Browse files Browse the repository at this point in the history
  • Loading branch information
jschendel authored and TomDLT committed Oct 3, 2017
1 parent 534f68b commit 12cf7db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/developers/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@ implement the interface is::

def set_params(self, **parameters):
for parameter, value in parameters.items():
self.setattr(parameter, value)
setattr(self, parameter, value)
return self


Expand Down

0 comments on commit 12cf7db

Please sign in to comment.