summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/src/connection.rst2
-rw-r--r--lib/_range.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/connection.rst b/doc/src/connection.rst
index 0842aca..2828ab8 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 1fcd857..25600d8 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.