From 884a7f7db67e96f4972cbba8082ec4db9393f684 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 7 Apr 2013 15:19:15 +0100 Subject: [PATCH] A couple of typos fixed --- doc/src/connection.rst | 2 +- lib/_range.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/connection.rst b/doc/src/connection.rst index 0842aca4..2828ab89 100644 --- a/doc/src/connection.rst +++ b/doc/src/connection.rst @@ -509,7 +509,7 @@ The ``connection`` class .. attribute:: cursor_factory The default cursor factory used by `~connection.cursor()` if the - parameter is no specified. + parameter is not specified. .. versionadded:: 2.5 diff --git a/lib/_range.py b/lib/_range.py index 1fcd857e..25600d84 100644 --- a/lib/_range.py +++ b/lib/_range.py @@ -159,7 +159,7 @@ def register_range(pgrange, pyrange, conn_or_curs, globally=False): of the returned `RangeCaster` object. The function queries the database on *conn_or_curs* to inspect the - *pgrange* type. Raise `~psycopg2.ProgrammingError` if the type is not + *pgrange* type and raises `~psycopg2.ProgrammingError` if the type is not found. If querying the database is not advisable, use directly the `RangeCaster` class and register the adapter and typecasters using the provided functions.