Skip to content

Commit 2b3b643

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

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

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 & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,7 @@ def parse_fontconfig_pattern(pattern):
9898
for prop in parse.get("properties", []):
9999
if len(prop) == 1:
100100
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
101+
106102
prop = _CONSTANTS[prop[0]]
107103
k, *v = prop
108104
props.setdefault(k, []).extend(map(_value_unescape, v))

0 commit comments

Comments
 (0)