bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)

This commit is contained in:
Serhiy Storchaka 2017-04-24 09:05:00 +03:00 committed by GitHub
parent 9eb5ca0774
commit 2e576f5aec
22 changed files with 90 additions and 85 deletions

View file

@ -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