Replace delimitedList with DelimitedList in cxml tests by Elenedeath · Pull Request #1104 · scanny/python-pptx
Expand Up
@@ -19,7 +19,7 @@
alphanums,
alphas,
dblQuotedString,
delimitedList,
DelimitedList,
removeQuotes,
stringEnd,
)
Expand Down
Expand Up
@@ -254,7 +254,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)
Expand All @@ -271,7 +271,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 Expand Down
text = dblQuotedString.setParseAction(removeQuotes)
Expand All @@ -271,7 +271,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 Expand Down