diff options
| author | Federico Di Gregorio <fog@initd.org> | 2005-06-13 06:25:06 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2005-06-13 06:25:06 +0000 |
| commit | 9c284f457042cad50beb5730ac7f8c4a36eacae2 (patch) | |
| tree | 7edea4fb77fc0986e89d408ed37085e60a357691 /examples/dt.py | |
| parent | 0c56bc95df1cb34343e1866cf2a671c61076cb81 (diff) | |
| download | psycopg2-9c284f457042cad50beb5730ac7f8c4a36eacae2.tar.gz | |
psycopg->psycopg2 switch in the examples.
Diffstat (limited to 'examples/dt.py')
| -rw-r--r-- | examples/dt.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/dt.py b/examples/dt.py index f285c7a..78d5355 100644 --- a/examples/dt.py +++ b/examples/dt.py @@ -18,7 +18,7 @@ DSN = 'dbname=test' ## don't modify anything below tis line (except for experimenting) -import sys, psycopg +import sys, psycopg2 import mx.DateTime import datetime @@ -26,7 +26,7 @@ if len(sys.argv) > 1: DSN = sys.argv[1] print "Opening connection using dns:", DSN -conn = psycopg.connect(DSN) +conn = psycopg2.connect(DSN) curs = conn.cursor() try: |
