Skip to content

Commit 7fb281e

Browse files
authored
Merge pull request #25010 from meeseeksmachine/auto-backport-of-pr-24989-on-v3.7.x
Backport PR #24989 on branch v3.7.x (Suppress pyparsing warning)
2 parents 7644fb9 + 567dfa0 commit 7fb281e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/_fontconfig_pattern.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import re
1414

1515
from pyparsing import (
16-
Optional, ParseException, Regex, StringEnd, Suppress, ZeroOrMore)
16+
Group, Optional, ParseException, Regex, StringEnd, Suppress, ZeroOrMore)
1717

1818
from matplotlib import _api
1919

@@ -64,7 +64,7 @@ def comma_separated(elem):
6464
name = Regex(r"[a-z]+")
6565
value = Regex(r"([^%s]|(\\[%s]))*" % (_value_punc, _value_punc))
6666
# replace trailing `| name` by oneOf(_CONSTANTS) in mpl 3.9.
67-
prop = (name + Suppress("=") + comma_separated(value)) | name
67+
prop = Group((name + Suppress("=") + comma_separated(value)) | name)
6868
return (
6969
Optional(comma_separated(family)("families"))
7070
+ Optional("-" + comma_separated(size)("sizes"))

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy