Skip to content

Commit

Permalink
DOC correct some indents (#15875)
Browse files Browse the repository at this point in the history
  • Loading branch information
qinhanmin2014 committed Dec 13, 2019
1 parent e0a8f71 commit dc11148
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sklearn/exceptions.py
Expand Up @@ -62,8 +62,8 @@ class ConvergenceWarning(UserWarning):
... [1, 0],
... [1, 0]]) # last point is duplicated
>>> with warnings.catch_warnings(record=True) as w:
... km = KMeans(n_clusters=4).fit(X)
... print(w[-1].message)
... km = KMeans(n_clusters=4).fit(X)
... print(w[-1].message)
Number of distinct clusters (3) found smaller than n_clusters (4).
Possibly due to duplicate points in X.
Expand Down
4 changes: 2 additions & 2 deletions sklearn/utils/_testing.py
Expand Up @@ -276,8 +276,8 @@ def ignore_warnings(obj=None, category=Warning):
... warnings.warn('buhuhuhu')
>>> def nasty_warn():
... warnings.warn('buhuhuhu')
... print(42)
... warnings.warn('buhuhuhu')
... print(42)
>>> ignore_warnings(nasty_warn)()
42
Expand Down

0 comments on commit dc11148

Please sign in to comment.