From 26b61aef3735b5549cfa18ca95e59284fa82abae Mon Sep 17 00:00:00 2001 From: coderamaster Date: Wed, 21 Jan 2026 08:23:16 -0500 Subject: [PATCH] Fix: Replace deprecated delimitedList with DelimitedList - Updated import to use DelimitedList instead of delimitedList - Replaced delimitedList() calls with DelimitedList() in grammar() - Fixes pyparsing deprecation warning in test utilities --- tests/unitutil/cxml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unitutil/cxml.py b/tests/unitutil/cxml.py index e76cabd74..12765ce26 100644 --- a/tests/unitutil/cxml.py +++ b/tests/unitutil/cxml.py @@ -6,6 +6,7 @@ from pyparsing import ( Combine, + DelimitedList, Forward, Group, Literal, @@ -15,7 +16,6 @@ alphanums, alphas, dblQuotedString, - delimitedList, removeQuotes, stringEnd, ) @@ -243,7 +243,7 @@ def grammar(): attr_name = Word(alphas + ":") attr_val = Word(alphanums + " %-./:_") attr_def = Group(attr_name + equal + attr_val) - attr_list = open_brace + delimitedList(attr_def) + close_brace + attr_list = open_brace + DelimitedList(attr_def) + close_brace text = dblQuotedString.setParseAction(removeQuotes) @@ -260,7 +260,7 @@ def grammar(): element("element") + Group(Optional(slash + child_node_list))("child_node_list") ).setParseAction(connect_node_children) - child_node_list << (open_paren + delimitedList(node) + close_paren | node) + child_node_list << (open_paren + DelimitedList(node) + close_paren | node) root_node = ( element("element") + Group(Optional(slash + child_node_list))("child_node_list") + stringEnd