diff options
author | Sergey Golitsynskiy <sgolitsynskiy@gmail.com> | 2020-11-10 20:20:23 -0500 |
---|---|---|
committer | Daniele Varrazzo <daniele.varrazzo@gmail.com> | 2020-11-17 20:19:26 +0000 |
commit | b05a5819317ab19fc7749e34fb67f4604d9bd10a (patch) | |
tree | 3726d74de3aad2afbfdadec29eba6412358d1825 /doc | |
parent | 694a20fb9518676223b987a62965ccc13213d2e3 (diff) | |
download | psycopg2-b05a5819317ab19fc7749e34fb67f4604d9bd10a.tar.gz |
Fix typo in sample code: psycopg >> psycopg2
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/install.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/install.rst b/doc/src/install.rst index b5a4398..a685cde 100644 --- a/doc/src/install.rst +++ b/doc/src/install.rst @@ -34,14 +34,14 @@ require the build or runtime prerequisites described below. Make sure to use an up-date-date version of :program:`pip` (you can upgrade it using something like ``pip install -U pip``). -You may then import the ``psycopg`` package, as usual: +You may then import the ``psycopg2`` package, as usual: .. code-block:: python - import psycopg + import psycopg2 # Connect to your postgres DB - conn = psycopg.connect("dbname=test user=postgres") + conn = psycopg2.connect("dbname=test user=postgres") # Open a cursor to perform database operations cur = conn.cursor() |