From 6955f977ac12612f38ab30277dcfff94315a0463 Mon Sep 17 00:00:00 2001 From: Eric Larson Date: Mon, 18 Jul 2022 17:59:09 -0400 Subject: [PATCH] MAINT: Fix CIs (#10933) --- mne/fixes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mne/fixes.py b/mne/fixes.py index 1bf2c6f423c..d0809812477 100644 --- a/mne/fixes.py +++ b/mne/fixes.py @@ -14,6 +14,7 @@ import inspect from math import log +from pprint import pprint import os import warnings @@ -459,10 +460,8 @@ def set_params(self, **params): return self def __repr__(self): - from sklearn.base import _pprint class_name = self.__class__.__name__ - return '%s(%s)' % (class_name, _pprint(self.get_params(deep=False), - offset=len(class_name),),) + return '%s(%s)' % (class_name, pprint(self.get_params(deep=False))) # __getstate__ and __setstate__ are omitted because they only contain # conditionals that are not satisfied by our objects (e.g.,