Skip to content

Commit

Permalink
Make one(default=foo) docs consistent
Browse files Browse the repository at this point in the history
This makes the returns and raises sections parallel.
  • Loading branch information
chadwhitacre committed Mar 1, 2014
1 parent 613c39b commit bb4e7b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions postgres/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ def one(self, sql, parameters=None, default=None, back_as=None, *a, **kw):
:type back_as: type or string
:param a: passed through to :py:meth:`~postgres.Postgres.get_cursor`
:param kw: passed through to :py:meth:`~postgres.Postgres.get_cursor`
:returns: a single record or value or the value of the
:py:attr:`default` argument
:raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany`
:returns: a single record or value, or :py:attr:`default` (if
:py:attr:`default` is not an :py:class:`Exception`)
:raises: :py:exc:`~postgres.TooFew` or :py:exc:`~postgres.TooMany`,
or :py:attr:`default` (if :py:attr:`default` is an
:py:class:`Exception` subclass or instance)
:py:class:`Exception`)
.. _bind parameters: #bind-parameters
Expand Down

0 comments on commit bb4e7b4

Please sign in to comment.