summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2005-10-18 05:57:02 +0000
committerFederico Di Gregorio <fog@initd.org>2005-10-18 05:57:02 +0000
commitc7c2c38bcd412abd71d297fd8fed12a98cd67dd5 (patch)
treeedfaa7d15ab8bb967987a5b33d1497e23c6ee80e
parent0c67c641a8ddbe2f19dc337fa617ab350733ef49 (diff)
downloadpsycopg2-c7c2c38bcd412abd71d297fd8fed12a98cd67dd5.tar.gz
Epydoc clean. :D
-rw-r--r--lib/extensions.py8
-rw-r--r--lib/psycopg1.py2
-rw-r--r--psycopg/psycopgmodule.c18
3 files changed, 14 insertions, 14 deletions
diff --git a/lib/extensions.py b/lib/extensions.py
index 1d3f911..239d7fa 100644
--- a/lib/extensions.py
+++ b/lib/extensions.py
@@ -2,10 +2,10 @@
This module holds all the extensions to the DBAPI-2.0 provided by psycopg.
- connection -- the new-type inheritable connection class
- cursor -- the new-type inheritable cursor class
- adapt() -- exposes the PEP-246 compatile adapting machanism used
- by psycopg to adapt Python types to PostgreSQL ones
+ - connection -- the new-type inheritable connection class
+ - cursor -- the new-type inheritable cursor class
+ - adapt() -- exposes the PEP-246 compatile adapting machanism used
+ by psycopg to adapt Python types to PostgreSQL ones
"""
# psycopg/extensions.py - DBAPI-2.0 extensions specific to psycopg
#
diff --git a/lib/psycopg1.py b/lib/psycopg1.py
index 2b06ca7..82a3966 100644
--- a/lib/psycopg1.py
+++ b/lib/psycopg1.py
@@ -2,7 +2,7 @@
This module uses the new style connection and cursor types to build a psycopg
1.1.1.x compatibility layer. It should be considered a temporary hack to run
-old code hile porting to psycopg 2. Import it as follows:
+old code hile porting to psycopg 2. Import it as follows::
from psycopg2 import psycopg1 as psycopg
"""
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index 493a6f1..0876565 100644
--- a/psycopg/psycopgmodule.c
+++ b/psycopg/psycopgmodule.c
@@ -68,19 +68,19 @@ PyObject *decimalType = NULL;
"connect(dsn, ...) -> new connection object\n\n" \
"This function supports two different but equivalent sets of arguments.\n" \
"A single data source name or 'dsn' string can be used to specify the\n" \
-"connection parameters, as follows:\n\n" \
+"connection parameters, as follows::\n\n" \
" psycopg2.connect(\"dbname=xxx user=xxx ...\")\n\n" \
"If 'dsn' is not provided it is possible to pass the parameters as\n" \
-"keyword arguments; e.g.,\n\n" \
+"keyword arguments; e.g.::\n\n" \
" psycopg2.connect(database='xxx', user='xxx', ...)\n\n" \
"The full list of available parameters is:\n\n" \
-" dbname -- database name (only in 'dsn')\n" \
-" database -- database name (only as keyword argument)\n" \
-" host -- host address (defaults to UNIX socket if not provided)\n" \
-" port -- port number (defaults to 5432 if not provided)\n" \
-" user -- user name used to authenticate\n" \
-" password -- password used to authenticate\n" \
-" sslmode -- SSL mode (see PostgreSQL documentation)\n\n" \
+" - dbname -- database name (only in 'dsn')\n" \
+" - database -- database name (only as keyword argument)\n" \
+" - host -- host address (defaults to UNIX socket if not provided)\n" \
+" - port -- port number (defaults to 5432 if not provided)\n" \
+" - user -- user name used to authenticate\n" \
+" - password -- password used to authenticate\n" \
+" - sslmode -- SSL mode (see PostgreSQL documentation)\n\n" \
"If the 'connection_factory' keyword argument is not provided this\n" \
"function always return an instance of the 'psycopg2.connection' class.\n" \
"Else the given sub-class of 'psycopg2.connection' will be used to\n" \