diff --git a/lib/matplotlib/_fontconfig_pattern.py b/lib/matplotlib/_fontconfig_pattern.py index efc1c9304f52..f0ed155c2d62 100644 --- a/lib/matplotlib/_fontconfig_pattern.py +++ b/lib/matplotlib/_fontconfig_pattern.py @@ -13,7 +13,7 @@ import re from pyparsing import ( - Optional, ParseException, Regex, StringEnd, Suppress, ZeroOrMore) + Group, Optional, ParseException, Regex, StringEnd, Suppress, ZeroOrMore) from matplotlib import _api @@ -64,7 +64,7 @@ def comma_separated(elem): name = Regex(r"[a-z]+") value = Regex(r"([^%s]|(\\[%s]))*" % (_value_punc, _value_punc)) # replace trailing `| name` by oneOf(_CONSTANTS) in mpl 3.9. - prop = (name + Suppress("=") + comma_separated(value)) | name + prop = Group((name + Suppress("=") + comma_separated(value)) | name) return ( Optional(comma_separated(family)("families")) + Optional("-" + comma_separated(size)("sizes"))
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: