Skip to content

Commit 87da56a

Browse files
author
James William Pye
committed
Rename db.wait to db.iternotifies.
"wait" was far too ambiguous.
1 parent a151f99 commit 87da56a

35 files changed

Lines changed: 59 additions & 69 deletions

postgresql/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ def listening_channels(self) -> ["channel name", ...]:
989989
"""
990990

991991
@abstractmethod
992-
def wait(self, timeout = None) -> collections.Iterator:
992+
def iternotifies(self, timeout = None) -> collections.Iterator:
993993
"""
994994
Return an iterator to the notifications received by the connection. The
995995
iterator *must* produce triples in the form ``(channel, payload, pid)``.

postgresql/documentation/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
##
2-
# copyright 2009, James William Pye
3-
# http://python.projects.postgresql.org
2+
# .documentation
43
##
54
r"""
65
See: `postgresql.documentation.index`

postgresql/documentation/admin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
##
2-
# copyright 2009, James William Pye
3-
# http://python.projects.postgresql.org
2+
# .documentation.admin
43
##
54
__doc__ = open(__file__[:__file__.rfind('.')] + '.txt').read()
65
__docformat__ = 'reStructuredText'

postgresql/documentation/bin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
##
2-
# copyright 2009, James William Pye
3-
# http://python.projects.postgresql.org
2+
# .documentation.bin
43
##
54
__doc__ = open(__file__[:__file__.rfind('.')] + '.txt').read()
65
__docformat__ = 'reStructuredText'

postgresql/documentation/changes.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
##
2-
# copyright 2009, James William Pye
3-
# http://python.projects.postgresql.org
2+
# .documentation.changes
43
##
54
__doc__ = open(__file__[:__file__.rfind('.')] + '.txt').read()
65
__docformat__ = 'reStructuredText'

postgresql/documentation/clientparameters.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
##
2-
# copyright 2009, James William Pye
3-
# http://python.projects.postgresql.org
2+
# .documentation.clientparameters
43
##
54
__doc__ = open(__file__[:__file__.rfind('.')] + '.txt').read()
65
__docformat__ = 'reStructuredText'

postgresql/documentation/driver.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
##
2-
# copyright 2009, James William Pye
3-
# http://python.projects.postgresql.org
2+
# .documentation.driver
43
##
54
__doc__ = open(__file__[:__file__.rfind('.')] + '.txt').read()
65
__docformat__ = 'reStructuredText'

postgresql/documentation/driver.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ The methods and properties on the connection object are ready for use:
380380
Return an iterator producing the channel names that are currently being
381381
listened to.
382382

383-
``db.wait(timeout = None)``
383+
``db.iternotifies(timeout = None)``
384384
Return an iterator to the NOTIFYs received on the connection. The iterator
385385
will yield notification triples consisting of ``(channel, payload, pid)``.
386386
While iterating, the connection should *not* be used in other threads.

postgresql/documentation/gotchas.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
##
2-
# copyright 2009, James William Pye
3-
# http://python.projects.postgresql.org
2+
# .documentation.gotchas
43
##
54
__doc__ = open(__file__[:__file__.rfind('.')] + '.txt').read()
65
__docformat__ = 'reStructuredText'

postgresql/documentation/html/_sources/driver.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ The methods and properties on the connection object are ready for use:
380380
Return an iterator producing the channel names that are currently being
381381
listened to.
382382

383-
``db.wait(timeout = None)``
383+
``db.iternotifies(timeout = None)``
384384
Return an iterator to the NOTIFYs received on the connection. The iterator
385385
will yield notification triples consisting of ``(channel, payload, pid)``.
386386
While iterating, the connection should *not* be used in other threads.

0 commit comments

Comments
 (0)