diff options
Diffstat (limited to 'examples/copy_to.py')
| -rw-r--r-- | examples/copy_to.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/copy_to.py b/examples/copy_to.py index 2eea672..5570fbc 100644 --- a/examples/copy_to.py +++ b/examples/copy_to.py @@ -23,13 +23,13 @@ DSN = 'dbname=test' import sys import os import StringIO -import psycopg +import psycopg2 if len(sys.argv) > 1: DSN = sys.argv[1] print "Opening connection using dns:", DSN -conn = psycopg.connect(DSN) +conn = psycopg2.connect(DSN) print "Encoding for this connection is", conn.encoding curs = conn.cursor() |
