From: Daniele Varrazzo Date: Sun, 29 Aug 2021 17:00:43 +0000 (+0200) Subject: Small cleanup to conninfo docs X-Git-Tag: 3.0.beta1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c7798a73d57d50767a25aa32ec4e5dd83e5670c;p=thirdparty%2Fpsycopg.git Small cleanup to conninfo docs --- diff --git a/psycopg/psycopg/conninfo.py b/psycopg/psycopg/conninfo.py index a920d0d61..87c61120e 100644 --- a/psycopg/psycopg/conninfo.py +++ b/psycopg/psycopg/conninfo.py @@ -24,7 +24,8 @@ def make_conninfo(conninfo: str = "", **kwargs: Any) -> str: :return: A connection string valid for PostgreSQL, with the *kwargs* parameters merged. - Raise `~psycopg.ProgrammingError` if the input don't make a valid conninfo. + Raise `~psycopg.ProgrammingError` if the input doesn't make a valid + conninfo string. .. __: https://www.postgresql.org/docs/current/libpq-connect.html #LIBPQ-CONNSTRING @@ -66,7 +67,8 @@ def conninfo_to_dict(conninfo: str = "", **kwargs: Any) -> Dict[str, Any]: :return: Dictionary with the parameters parsed from *conninfo* and *kwargs*. - Raise ProgrammingError if the string is not valid. + Raise `~psycopg.ProgrammingError` if *conninfo* is not a a valid connection + string. .. __: https://www.postgresql.org/docs/current/libpq-connect.html #LIBPQ-CONNSTRING