Skip to content

Commit

Permalink
fix super() call for python2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Lawson committed Sep 27, 2018
1 parent 37db243 commit 441e2e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/utils/_scipy_truncnorm_backport.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class truncnorm_gen(rv_continuous):
a, b = (myclip_a - my_mean) / my_std, (myclip_b - my_mean) / my_std
`truncnorm` takes :math:`a` and :math:`b` as shape parameters.
"""
def __init__(self, seed=None, **kwds):
super().__init__(**kwds)
def __init__(self, seed=None, name=None, **kwds):
super(rv_continuous, self).__init__(**kwds)
self._random_state = check_random_state(seed)

def _argcheck(self, a, b):
Expand Down

0 comments on commit 441e2e2

Please sign in to comment.