Skip to content

Commit 1ba84c2

Browse files
author
James William Pye
committed
Minor nits and whitespace consistency.
1 parent 765ed1f commit 1ba84c2

3 files changed

Lines changed: 9 additions & 18 deletions

File tree

README

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,25 @@
1-
About py-postgresql
2-
===================
1+
About
2+
=====
33

44
py-postgresql is a Python 3 package providing modules to work with PostgreSQL.
55
This includes a high-level driver, and many other tools that support a developer
66
working with PostgreSQL databases.
77

8-
The goal of this project is to provide substantial convenience to Python
9-
developers working with PostgreSQL.
10-
11-
128
Installation
139
------------
1410

1511
Installation *should* be as simple as::
1612

1713
$ python3 ./setup.py install
1814

19-
2015
More information about installation is available via::
2116

2217
python -m postgresql.documentation.admin
2318

24-
2519
Basic Driver Usage
2620
------------------
2721

28-
Using PG-API is recommended as it provides more utility for the user::
22+
Using PG-API::
2923

3024
>>> import postgresql
3125
>>> db = postgresql.open('pq://user:password@host:port/database')
@@ -34,15 +28,12 @@ Using PG-API is recommended as it provides more utility for the user::
3428
>>> print(x)
3529
>>> print(get_table.first("tables"))
3630

37-
However, a DB-API 2.0 driver is provided: `postgresql.driver.dbapi20`.
38-
31+
However, a DB-API 2.0 driver is provided as well: `postgresql.driver.dbapi20`.
3932

4033
Further Information
4134
-------------------
4235

43-
The documentation package, `postgresql.documentation.index`, contains more
44-
detailed information on the modules herein, and HTML versions of the
45-
documentation can be found at:
36+
Online documentation can be retrieved from:
4637

4738
http://python.projects.postgresql.org
4839

postgresql/configfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def alter_config(
9090
'Alters a configuration file without trampling on the existing structure'
9191
if keys is None:
9292
keys = list(map.keys())
93-
# Normalize keys and map them back to
93+
# Normalize keys and map them back to
9494
pkeys = {
9595
k.lower().strip() : keys.index(k) for k in keys
9696
}

postgresql/port/_optimized/module.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ static PyMethodDef optimized_methods[] = {
5959
static struct PyModuleDef optimized_module = {
6060
PyModuleDef_HEAD_INIT,
6161
"optimized", /* name of module */
62-
NULL, /* module documentation, may be NULL */
63-
-1, /* size of per-interpreter state of the module,
64-
or -1 if the module keeps state in global variables. */
62+
NULL, /* module documentation, may be NULL */
63+
-1, /* size of per-interpreter state of the module,
64+
or -1 if the module keeps state in global variables. */
6565
optimized_methods,
6666
};
6767

0 commit comments

Comments
 (0)