From 2e576f5aec1f8f23f07001e2eb3db9276851a4fc Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 24 Apr 2017 09:05:00 +0300 Subject: bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) --- Lib/xml/etree/ElementTree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Lib/xml/etree/ElementTree.py') diff --git a/Lib/xml/etree/ElementTree.py b/Lib/xml/etree/ElementTree.py index 7944cf100f..7caef553ef 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 -- cgit v1.2.1