summaryrefslogtreecommitdiff
path: root/lib/psycopg1.py
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-06-15 10:11:48 +0100
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2017-06-17 01:51:37 +0100
commit991f0988ee11f517632a3d1f8b896097f2f6f80c (patch)
treecca623630479c2bbe95c5694eb237d44c2358855 /lib/psycopg1.py
parent8ab16807c637c3c275b4ca8c70a34392980669c1 (diff)
downloadpsycopg2-991f0988ee11f517632a3d1f8b896097f2f6f80c.tar.gz
Use an import style reported not broken on Python 3.6
Couldn't reproduce the issue but it has been documented in #550.
Diffstat (limited to 'lib/psycopg1.py')
-rw-r--r--lib/psycopg1.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/psycopg1.py b/lib/psycopg1.py
index 3808aaa..0ee7942 100644
--- a/lib/psycopg1.py
+++ b/lib/psycopg1.py
@@ -28,12 +28,12 @@ old code while porting to psycopg 2. Import it as follows::
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
-import psycopg2._psycopg as _2psycopg # noqa
+from psycopg2 import _psycopg as _2psycopg # noqa
from psycopg2.extensions import cursor as _2cursor
from psycopg2.extensions import connection as _2connection
from psycopg2 import * # noqa
-import psycopg2.extensions as _ext
+from psycopg2 import extensions as _ext
_2connect = connect