summaryrefslogtreecommitdiffstats
path: root/Lib/xml/etree/ElementTree.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/xml/etree/ElementTree.py')
-rw-r--r--Lib/xml/etree/ElementTree.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py
index 7944cf1..7caef55 100644
--- a/Lib/xml/etree/ElementTree.py
+++ b/Lib/xml/etree/ElementTree.py
@@ -96,6 +96,7 @@ import re
import warnings
import io
import collections
+import collections.abc
import contextlib
from . import ElementPath
@@ -1231,7 +1232,7 @@ def iterparse(source, events=None, parser=None):
if close_source:
source.close()
- class IterParseIterator(collections.Iterator):
+ class IterParseIterator(collections.abc.Iterator):
__next__ = iterator().__next__
it = IterParseIterator()
it.root = None