diff --git a/postgresql/copyman.py b/postgresql/copyman.py index b0f7a6c..4322982 100644 --- a/postgresql/copyman.py +++ b/postgresql/copyman.py @@ -9,7 +9,7 @@ """ import sys from abc import abstractmethod, abstractproperty -from collections import Iterator +from collections.abc import Iterator from .python.element import Element, ElementSet from .python.structlib import ulong_unpack, ulong_pack from .protocol.buffer import pq_message_stream diff --git a/postgresql/documentation/notifyman.rst b/postgresql/documentation/notifyman.rst index d774ee5..0b21475 100644 --- a/postgresql/documentation/notifyman.rst +++ b/postgresql/documentation/notifyman.rst @@ -20,7 +20,7 @@ receives notifications. The `postgresql.notifyman.NotificationManager` class is used to wait for messages to come in on a set of connections, pick up the messages, and deliver -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. Listening on a Single Connection