Changeset 522 for trunk


Ignore:
Timestamp:
Aug 3, 2015, 4:11:53 PM (4 years ago)
Author:
cito
Message:

Correction in docstring (reported by Philipp Hahn).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/module/pgdb.py

    r521 r522  
    2424    # password as keyword arguments. To pass a port,
    2525    # pass it in the host keyword parameter:
    26     pgdb.connect(host='localhost:5432')
    27 
    28     connection.cursor() # open a cursor
     26    connection = pgdb.connect(host='localhost:5432')
     27
     28    cursor = connection.cursor() # open a cursor
    2929
    3030    cursor.execute(query[, params])
Note: See TracChangeset for help on using the changeset viewer.