mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-17 01:20:32 +03:00
Fix typo in docs
This commit is contained in:
parent
b4d38c455c
commit
6de7315210
|
@ -189,7 +189,7 @@ deal with Python objects adaptation:
|
||||||
|
|
||||||
.. function:: adapt(obj)
|
.. function:: adapt(obj)
|
||||||
|
|
||||||
Return the SQL representation of *obj* as a string. Raise a
|
Return the SQL representation of *obj* as an `ISQLQuote`. Raise a
|
||||||
`~psycopg2.ProgrammingError` if how to adapt the object is unknown.
|
`~psycopg2.ProgrammingError` if how to adapt the object is unknown.
|
||||||
In order to allow new objects to be adapted, register a new adapter for it
|
In order to allow new objects to be adapted, register a new adapter for it
|
||||||
using the `register_adapter()` function.
|
using the `register_adapter()` function.
|
||||||
|
@ -203,7 +203,7 @@ deal with Python objects adaptation:
|
||||||
Register a new adapter for the objects of class *class*.
|
Register a new adapter for the objects of class *class*.
|
||||||
|
|
||||||
*adapter* should be a function taking a single argument (the object
|
*adapter* should be a function taking a single argument (the object
|
||||||
to adapt) and returning an object conforming the `ISQLQuote`
|
to adapt) and returning an object conforming to the `ISQLQuote`
|
||||||
protocol (e.g. exposing a `!getquoted()` method). The `AsIs` is
|
protocol (e.g. exposing a `!getquoted()` method). The `AsIs` is
|
||||||
often useful for this task.
|
often useful for this task.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user