From 032c1abaa03a2bbca99b605fe36ea8650e68808f Mon Sep 17 00:00:00 2001 From: Hanmin Qin Date: Fri, 13 Dec 2019 11:35:32 +0800 Subject: [PATCH] DOC correct some indents --- sklearn/exceptions.py | 4 ++-- sklearn/utils/_testing.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sklearn/exceptions.py b/sklearn/exceptions.py index 590fa416dd807..c3da8e8d7986f 100644 --- a/sklearn/exceptions.py +++ b/sklearn/exceptions.py @@ -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. diff --git a/sklearn/utils/_testing.py b/sklearn/utils/_testing.py index 4e4e6043eae3d..d5ad9d262da93 100644 --- a/sklearn/utils/_testing.py +++ b/sklearn/utils/_testing.py @@ -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