Skip to content

Commit bb4e7b4

Browse files
committed
Make one(default=foo) docs consistent
This makes the returns and raises sections parallel.
1 parent 613c39b commit bb4e7b4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

postgres/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,11 @@ def one(self, sql, parameters=None, default=None, back_as=None, *a, **kw):
384384
:type back_as: type or string
385385
:param a: passed through to :py:meth:`~postgres.Postgres.get_cursor`
386386
:param kw: passed through to :py:meth:`~postgres.Postgres.get_cursor`
387-
:returns: a single record or value or the value of the
388-
:py:attr:`default` argument
389-
:raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany`
387+
:returns: a single record or value, or :py:attr:`default` (if
388+
:py:attr:`default` is not an :py:class:`Exception`)
389+
:raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany`,
390390
or :py:attr:`default` (if :py:attr:`default` is an
391-
:py:class:`Exception` subclass or instance)
391+
:py:class:`Exception`)
392392
393393
.. _bind parameters: #bind-parameters
394394

0 commit comments

Comments
 (0)