From: Mike Bayer Date: Thu, 31 Aug 2017 14:04:22 +0000 (-0400) Subject: Use text_type, not unicode X-Git-Tag: origin~32 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d0470e296ea589620c94d8f2dd37e94b8f03842a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Use text_type, not unicode Revise the fix from 03560c4b83308719067ec635662c35f9a437fb7f to use compat.text_type for py3k compatibility Change-Id: Ia6807bd4de3bba4b33b5327a1be7e728b45eb093 --- 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: