From d0470e296ea589620c94d8f2dd37e94b8f03842a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 31 Aug 2017 10:04:22 -0400 Subject: [PATCH] Use text_type, not unicode Revise the fix from 03560c4b83308719067ec635662c35f9a437fb7f to use compat.text_type for py3k compatibility Change-Id: Ia6807bd4de3bba4b33b5327a1be7e728b45eb093 --- lib/sqlalchemy/dialects/postgresql/pg8000.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlalchemy/dialects/postgresql/pg8000.py b/lib/sqlalchemy/dialects/postgresql/pg8000.py index 3ec7798c36..576e6acf75 100644 --- a/lib/sqlalchemy/dialects/postgresql/pg8000.py +++ b/lib/sqlalchemy/dialects/postgresql/pg8000.py @@ -271,7 +271,7 @@ class PGDialect_pg8000(PGDialect): fns = [] def on_connect(conn): - conn.py_types[quoted_name] = conn.py_types[unicode] + conn.py_types[quoted_name] = conn.py_types[util.text_type] fns.append(on_connect) if self.client_encoding is not None: -- 2.47.3