aboutsummaryrefslogtreecommitdiff
path: root/mammoth
diff options
context:
space:
mode:
Diffstat (limited to 'mammoth')
-rw-r--r--mammoth/docx/style_map.py2
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