mirror of
https://github.com/python/cpython.git
synced 2025-09-08 01:41:19 +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
|
@ -14,6 +14,7 @@ to modify the meaning of the API call itself.
|
|||
"""
|
||||
|
||||
import collections
|
||||
import collections.abc
|
||||
import concurrent.futures
|
||||
import heapq
|
||||
import itertools
|
||||
|
@ -1001,7 +1002,7 @@ class BaseEventLoop(events.AbstractEventLoop):
|
|||
if host == '':
|
||||
hosts = [None]
|
||||
elif (isinstance(host, str) or
|
||||
not isinstance(host, collections.Iterable)):
|
||||
not isinstance(host, collections.abc.Iterable)):
|
||||
hosts = [host]
|
||||
else:
|
||||
hosts = host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue