summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Golitsynskiy <sgolitsynskiy@gmail.com>2020-11-10 20:20:23 -0500
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2021-05-23 11:56:22 +0200
commit359679b13606de45931cd4b4ccb1db20a1c339f1 (patch)
tree06cdf659abbc311a829644f4ceb83b3106d2e6fc
parent881bb98ab5f6bf01e3142fbdb6eda9eadf367925 (diff)
downloadpsycopg2-maint_2_8.tar.gz
Fix typo in sample code: psycopg >> psycopg2maint_2_8
-rw-r--r--doc/src/install.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/install.rst b/doc/src/install.rst
index 868b1b7..2c7bdf2 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()