2 parents 8775f70 + 8ddf5a4 commit f1a57f4Copy full SHA for f1a57f4
2 files changed
postgresql/copyman.py
@@ -9,7 +9,7 @@
9
"""
10
import sys
11
from abc import abstractmethod, abstractproperty
12
-from collections import Iterator
+from collections.abc import Iterator
13
from .python.element import Element, ElementSet
14
from .python.structlib import ulong_unpack, ulong_pack
15
from .protocol.buffer import pq_message_stream
postgresql/documentation/notifyman.rst
@@ -20,7 +20,7 @@ receives notifications.
20
21
The `postgresql.notifyman.NotificationManager` class is used to wait for
22
messages to come in on a set of connections, pick up the messages, and deliver
23
-the messages to the object's user via the `collections.Iterator` protocol.
+the messages to the object's user via the `collections.abc.Iterator` protocol.
24
25
26
Listening on a Single Connection
0 commit comments