diff --git a/aiozmq/core.py b/aiozmq/core.py index 10d65ba..f038401 100644 --- a/aiozmq/core.py +++ b/aiozmq/core.py @@ -7,7 +7,8 @@ import weakref import zmq -from collections import deque, Iterable, namedtuple +from collections import deque, namedtuple +from collections.abc import Iterable from .interface import ZmqTransport, ZmqProtocol from .log import logger diff --git a/aiozmq/rpc/pubsub.py b/aiozmq/rpc/pubsub.py index 9872fd9..0fc2a0f 100644 --- a/aiozmq/rpc/pubsub.py +++ b/aiozmq/rpc/pubsub.py @@ -1,5 +1,5 @@ import asyncio -from collections import Iterable +from collections.abc import Iterable from functools import partial import zmq diff --git a/aiozmq/selector.py b/aiozmq/selector.py index 97abbe1..80bf668 100644 --- a/aiozmq/selector.py +++ b/aiozmq/selector.py @@ -1,6 +1,6 @@ """ZMQ pooler for asyncio.""" import math -from collections import Mapping +from collections.abc import Mapping from errno import EINTR from zmq import (ZMQError, POLLIN, POLLOUT, POLLERR, diff --git a/aiozmq/util.py b/aiozmq/util.py index 231e9b4..334a1df 100644 --- a/aiozmq/util.py +++ b/aiozmq/util.py @@ -1,4 +1,4 @@ -from collections import Set +from collections.abc import Set class _EndpointsSet(Set):