From 567dfa085f44a42859dad7a9e7ec94ce9d77aae8 Mon Sep 17 00:00:00 2001 From: Kyle Sunden Date: Mon, 16 Jan 2023 18:54:10 -0600 Subject: [PATCH] Backport PR #24989: Suppress pyparsing warning --- lib/matplotlib/_fontconfig_pattern.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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")) 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