Skip to content

Commit b55ad8f

Browse files
committed
Use proper formatting for parameters
1 parent 1e770ef commit b55ad8f

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

postgres.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,13 @@ def url_to_dsn(url):
9191
class Postgres(object):
9292
"""Interact with a `PostgreSQL <http://www.postgresql.org/>`_ datastore.
9393
94-
This is the main object that :py:mod:`postgres` provides, and you should
95-
have one instance per process. Here are the arguments:
96-
97-
- ``url`` - A ``postgres://`` URL or a `PostgreSQL connection string
98-
<http://www.postgresql.org/docs/current/static/libpq-connect.html>`_
99-
100-
- ``minconn`` - The minimum size of the connection pool
94+
:param unicode url: A ``postgres://`` URL or a `PostgreSQL connection string <http://www.postgresql.org/docs/current/static/libpq-connect.html>`_
95+
:param int minconn: The minimum size of the connection pool
96+
:param int maxconn: The minimum size of the connection pool
10197
102-
- ``maxconn`` - The maximum size of the connection pool
103-
104-
When instantiated, this object creates a `thread-safe connection pool
98+
This is the main object that :py:mod:`postgres` provides, and you should
99+
have one instance per process. When instantiated, this object creates a
100+
`thread-safe connection pool
105101
<http://initd.org/psycopg/docs/pool.html#psycopg2.pool.ThreadedConnectionPool>`_,
106102
which opens ``minconn`` connections immediately and up to ``maxconn``
107103
according to demand.

0 commit comments

Comments
 (0)