Skip to content

Commit bcd043a

Browse files
committed
Fix: DeprecationWarning in Python3.7
Ref: python/cpython#5460 Ref: https://bugs.python.org/issue25988
1 parent 9ff53bf commit bcd043a

4 files changed

Lines changed: 5 additions & 4 deletions

File tree

aiozmq/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
import weakref
88
import zmq
99

10-
from collections import deque, Iterable, namedtuple
10+
from collections import deque, namedtuple
11+
from collections.abc import Iterable
1112

1213
from .interface import ZmqTransport, ZmqProtocol
1314
from .log import logger

aiozmq/rpc/pubsub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import asyncio
2-
from collections import Iterable
2+
from collections.abc import Iterable
33
from functools import partial
44

55
import zmq

aiozmq/selector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""ZMQ pooler for asyncio."""
22
import math
3-
from collections import Mapping
3+
from collections.abc import Mapping
44
from errno import EINTR
55

66
from zmq import (ZMQError, POLLIN, POLLOUT, POLLERR,

aiozmq/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections import Set
1+
from collections.abc import Set
22

33

44
class _EndpointsSet(Set):

0 commit comments

Comments
 (0)