Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 89277e4

Browse files
committed
Cut it all
1 parent d0d76ad commit 89277e4

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/matplotlib/__init__.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -828,18 +828,6 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True):
828828
dict.update(rcParams, _rc_params_in_file(matplotlib_fname()))
829829
with _api.suppress_matplotlib_deprecation_warning():
830830
rcParamsOrig = RcParams(rcParams.copy())
831-
# This also checks that all rcParams are indeed listed in the template.
832-
# Assigning to rcsetup.defaultParams is left only for backcompat.
833-
defaultParams = {}
834-
for key, validator in rcsetup._validators.items():
835-
if key == 'backend':
836-
defaultParams['backend'] = rcsetup._auto_backend_sentinel
837-
elif key in rcParamsDefault.keys():
838-
defaultParams[key] = validator
839-
else:
840-
_api.warn_external(f'rcsetup key "{key}" not in the default'
841-
' rcParams')
842-
rcsetup.defaultParams = defaultParams
843831

844832
if rcParams['axes.formatter.use_locale']:
845833
locale.setlocale(locale.LC_ALL, '')

0 commit comments

Comments
 (0)