From 359679b13606de45931cd4b4ccb1db20a1c339f1 Mon Sep 17 00:00:00 2001 From: Sergey Golitsynskiy Date: Tue, 10 Nov 2020 20:20:23 -0500 Subject: [PATCH] Fix typo in sample code: psycopg >> psycopg2 --- doc/src/install.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/src/install.rst b/doc/src/install.rst index 868b1b70..2c7bdf27 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()