mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263)
This commit is contained in:
parent
9eb5ca0774
commit
2e576f5aec
22 changed files with 90 additions and 85 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue