Skip to content

Commit eb2fb3b

Browse files
jsjeelshahQuLogic
authored andcommitted
Removed deprecated code from _fontconfig_patterns
1 parent f80ff65 commit eb2fb3b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Removal change template
2+
~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
@_api.delete_parameter("3.7", "raw") was removed from gridpec.py
5+
and
6+
_api.warn_deprecated function removed from _fontcongif_patterns.py

lib/matplotlib/_fontconfig_pattern.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,7 @@ def parse_fontconfig_pattern(pattern):
9797
props["size"] = [*parse["sizes"]]
9898
for prop in parse.get("properties", []):
9999
if len(prop) == 1:
100-
if prop[0] not in _CONSTANTS:
101-
_api.warn_deprecated(
102-
"3.7", message=f"Support for unknown constants "
103-
f"({prop[0]!r}) is deprecated since %(since)s and "
104-
f"will be removed %(removal)s.")
105-
continue
106-
prop = _CONSTANTS[prop[0]]
100+
prop = _api.check_getitem(_CONSTANTS, property=prop[0])
107101
k, *v = prop
108102
props.setdefault(k, []).extend(map(_value_unescape, v))
109103
return props

0 commit comments

Comments
 (0)