Skip to content

Commit 05a6231

Browse files
committed
Fix test failures with pyparsing 3.3
1 parent 4015f91 commit 05a6231

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/topology/simplicial_set_examples.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ def simplicial_data_from_kenzo_output(filename) -> dict:
655655
sage: S4.homology(reduced=False) # needs pyparsing
656656
{0: Z, 1: 0, 2: 0, 3: 0, 4: Z}
657657
"""
658-
from pyparsing import OneOrMore, nestedExpr
658+
from pyparsing import OneOrMore, nested_expr
659659

660660
with open(filename) as f:
661661
data = f.read()
@@ -675,7 +675,7 @@ def simplicial_data_from_kenzo_output(filename) -> dict:
675675
end = new_dim_idx
676676
if dim == 0:
677677
simplex_string = data[data.find('Vertices :') + len('Vertices :'):end]
678-
vertices = OneOrMore(nestedExpr()).parseString(simplex_string).asList()[0]
678+
vertices = OneOrMore(nested_expr()).parse_string(simplex_string).asList()[0]
679679
for v in vertices:
680680
vertex = AbstractSimplex(0, name=v)
681681
simplex_data[vertex] = None

0 commit comments

Comments
 (0)