summaryrefslogtreecommitdiff
path: root/markdown/extensions/headerid.py
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-01-31 12:14:38 -0500
committerWaylan Limberg <waylan.limberg@icloud.com>2015-01-31 12:14:38 -0500
commit82ad7a9c155a7b9813a48b10479d1b742690deaa (patch)
tree00382b75b4fa95c86ccfd3e64a1d0649e18c36c1 /markdown/extensions/headerid.py
parent17123eaf6eb72a60bf6c5b8a1ad0457187387879 (diff)
downloadpython-markdown-82ad7a9c155a7b9813a48b10479d1b742690deaa.tar.gz
Use newer ElementTree API to avoid future breakage.
Diffstat (limited to 'markdown/extensions/headerid.py')
-rw-r--r--markdown/extensions/headerid.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/markdown/extensions/headerid.py b/markdown/extensions/headerid.py
index 67c9b7d..2cb20b9 100644
--- a/markdown/extensions/headerid.py
+++ b/markdown/extensions/headerid.py
@@ -33,7 +33,7 @@ class HeaderIdTreeprocessor(Treeprocessor):
start_level, force_id = self._get_meta()
slugify = self.config['slugify']
sep = self.config['separator']
- for elem in doc.getiterator():
+ for elem in doc:
if elem.tag in ['h1', 'h2', 'h3', 'h4', 'h5', 'h6']:
if force_id:
if "id" in elem.attrib: