File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Original file line number Diff line number Diff line change @@ -170,19 +170,21 @@ def validate_bool_maybe_none(b):
170
170
171
171
172
172
def _validate_tex_preamble (s ):
173
- message = (
174
- f"Support for setting the 'text.latex.preamble' and 'pgf.preamble' "
175
- f"rcParams to { s !r} is deprecated since %(since)s and will be "
176
- f"removed %(removal)s; please set them to plain (possibly empty) "
177
- f"strings instead." )
178
173
if s is None or s == 'None' :
179
- cbook .warn_deprecated ("3.3" , message = message )
174
+ cbook .warn_deprecated (
175
+ "3.3" , message = "Support for setting the 'text.latex.preamble' or "
176
+ "'pgf.preamble' rcParam to None is deprecated since %(since)s and "
177
+ "will be removed %(removal)s; set it to an empty string instead." )
180
178
return ""
181
179
try :
182
180
if isinstance (s , str ):
183
181
return s
184
182
elif np .iterable (s ):
185
- cbook .warn_deprecated ("3.3" , message = message )
183
+ cbook .warn_deprecated (
184
+ "3.3" , message = "Support for setting the 'text.latex.preamble' "
185
+ "or 'pgf.preamble' rcParam to a list of strings is deprecated "
186
+ "since %(since)s and will be removed %(removal)s; set it to a "
187
+ "single string instead." )
186
188
return '\n ' .join (s )
187
189
else :
188
190
raise TypeError
You can’t perform that action at this time.
0 commit comments