diff options
| author | Michael Williamson <mike@zwobble.org> | 2020-11-06 19:34:02 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2020-11-06 19:35:05 +0000 |
| commit | ead17877f4aa744f10a4f09dbfa9c4942c9033fb (patch) | |
| tree | d2b1e70d61a24aceee81b4bfc6447ca21616011d /mammoth/docx | |
| parent | 565695e9556435210e505974ae60e2c5459035f2 (diff) | |
Support Python 3.9
Diffstat (limited to 'mammoth/docx')
| -rw-r--r-- | mammoth/docx/style_map.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mammoth/docx/style_map.py b/mammoth/docx/style_map.py index 5fce16b..9a18216 100644 --- a/mammoth/docx/style_map.py +++ b/mammoth/docx/style_map.py @@ -57,7 +57,7 @@ def _add_or_update_element(parent, name, identifying_attribute, attributes): def _find_child(parent, name, identifying_attribute, attributes): - for element in parent.getiterator(): + for element in parent.iter(): if element.tag == name and element.get(identifying_attribute) == attributes.get(identifying_attribute): return element |
