Skip to content
This repository was archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Replace deprecated .getchildren with list(node). See aleray/mdx_outli…
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgestar committed Apr 25, 2023
1 parent ef6c820 commit acccfe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdx_outline.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def process_nodes(self, node):
pattern = re.compile('^h(\d)')
wrapper_cls = self.wrapper_cls

for child in node.getchildren():
for child in list(node):
match = pattern.match(child.tag.lower())

if match:
Expand Down

0 comments on commit acccfe3

Please sign in to comment.