|
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 |
@@ -1101,7 +1102,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): |
1101 | 1102 |
|
1102 | 1103 | iter_params = defaultParams.items() |
1103 | 1104 | with warnings.catch_warnings(): |
1104 | | - warnings.simplefilter("ignore", mplDeprecation) |
| 1105 | + warnings.simplefilter("ignore", MatplotlibDeprecationWarning) |
1105 | 1106 | config = RcParams([(key, default) for key, (default, _) in iter_params |
1106 | 1107 | if key not in _all_deprecated]) |
1107 | 1108 | config.update(config_from_file) |
@@ -1143,7 +1144,7 @@ def rc_params_from_file(fname, fail_on_error=False, use_default_template=True): |
1143 | 1144 | rcParamsOrig = rcParams.copy() |
1144 | 1145 |
|
1145 | 1146 | with warnings.catch_warnings(): |
1146 | | - warnings.simplefilter("ignore", mplDeprecation) |
| 1147 | + warnings.simplefilter("ignore", MatplotlibDeprecationWarning) |
1147 | 1148 | rcParamsDefault = RcParams([(key, default) for key, (default, converter) in |
1148 | 1149 | defaultParams.items() |
1149 | 1150 | if key not in _all_deprecated]) |
|
0 commit comments