|
140 | 140 | # definitions, so it is safe to import from it here. |
141 | 141 | from . import cbook |
142 | 142 | from matplotlib.cbook import ( |
143 | | - mplDeprecation, dedent, get_label, sanitize_sequence) |
| 143 | + MatplotlibDeprecationWarning, dedent, get_label, sanitize_sequence) |
| 144 | +from matplotlib.cbook import mplDeprecation # deprecated |
144 | 145 | from matplotlib.rcsetup import defaultParams, validate_backend, cycler |
145 | 146 |
|
146 | 147 | import numpy |
@@ -1092,7 +1093,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): |
1092 | 1093 |
|
1093 | 1094 | iter_params = defaultParams.items() |
1094 | 1095 | with warnings.catch_warnings(): |
1095 | | - warnings.simplefilter("ignore", mplDeprecation) |
| 1096 | + warnings.simplefilter("ignore", MatplotlibDeprecationWarning) |
1096 | 1097 | config = RcParams([(key, default) for key, (default, _) in iter_params |
1097 | 1098 | if key not in _all_deprecated]) |
1098 | 1099 | config.update(config_from_file) |
@@ -1133,7 +1134,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): |
1133 | 1134 | rcParamsOrig = rcParams.copy() |
1134 | 1135 |
|
1135 | 1136 | with warnings.catch_warnings(): |
1136 | | - warnings.simplefilter("ignore", mplDeprecation) |
| 1137 | + warnings.simplefilter("ignore", MatplotlibDeprecationWarning) |
1137 | 1138 | rcParamsDefault = RcParams([(key, default) for key, (default, converter) in |
1138 | 1139 | defaultParams.items() |
1139 | 1140 | if key not in _all_deprecated]) |
|
0 commit comments