Skip to content

Commit 7c84f6f

Browse files
committed
Use public API for XML element
Previously the private attribute _children was in use, which has been changed/removed in python3.
1 parent c76eaf7 commit 7c84f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ def get_ns_map(self, elements, uri_set):
578578

579579
for elem in elements:
580580
uri_set = self.get_ns_map_attribute(elem.attrib, uri_set)
581-
uri_set = self.get_ns_map(elem._children, uri_set)
581+
uri_set = self.get_ns_map(elem.getchildren(), uri_set)
582582
uri = self.tag_get_uri(elem)
583583
if uri is not None:
584584
uri_set.add(uri)

0 commit comments

Comments
 (0)