8000 Remove extra 'in' in deprecation messages. · matplotlib/matplotlib@427f0f9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 427f0f9

Browse files
committed
Remove extra 'in' in deprecation messages.
The %(removal)s substition already includes 'in' or whatever prefix is necessary.
1 parent 0365e18 commit 427f0f9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/matplotlib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ def get_data_path(*, _from_rc=None):
515515
cbook.warn_deprecated(
516516
"3.2",
517517
message=("Setting the datapath via matplotlibrc is deprecated "
518-
"%(since)s and will be removed in %(removal)s."),
518+
"%(since)s and will be removed %(removal)s."),
519519
removal='3.3')
520520
path = Path(_from_rc)
521521
if path.is_dir():

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,7 @@ def validate_axisbelow(s):
192192
cbook.warn_deprecated(
193193
"3.3", message=f"Support for setting axes.axisbelow to "
194194
f"{s!r} to mean 'line' is deprecated since %(since)s and "
195-
f"will be removed in %(removal)s; set it to 'line' "
196-
"instead.")
195+
f"will be removed %(removal)s; set it to 'line' instead.")
197196
return 'line'
198197
raise ValueError('%s cannot be interpreted as'
199198
' True, False, or "line"' % s)

0 commit comments

Comments
 (0)
0