aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/tests.yml2
-rw-r--r--mammoth/docx/style_map.py2
-rw-r--r--setup.py1
-rw-r--r--tox.ini2
4 files changed, 4 insertions, 3 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 9a7902c..34a59c1 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
- python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, pypy2, pypy3]
+ python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, pypy2, pypy3]
steps:
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
diff --git a/setup.py b/setup.py
index 162d3f2..db8aa69 100644
--- a/setup.py
+++ b/setup.py
@@ -41,6 +41,7 @@ setup(
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
],
)
diff --git a/tox.ini b/tox.ini
index 50a436e..913fee0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -1,5 +1,5 @@
[tox]
-envlist = py27,py34,py35,py36,py37,py38,pypy,pypy3
+envlist = py27,py34,py35,py36,py37,py38,py39,pypy,pypy3
[testenv]
changedir = {envtmpdir}
deps=-r{toxinidir}/test-requirements.txt