]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Use text_type, not unicode
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 31 Aug 2017 14:04:22 +0000 (10:04 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 31 Aug 2017 14:04:22 +0000 (10:04 -0400)
Revise the fix from 03560c4b83308719067ec635662c35f9a437fb7f
to use compat.text_type for py3k compatibility

Change-Id: Ia6807bd4de3bba4b33b5327a1be7e728b45eb093

lib/sqlalchemy/dialects/postgresql/pg8000.py

index 3ec7798c3681feda134b3e9ab9545820df75683d..576e6acf75aa6f0b08494fe80885c757accc708b 100644 (file)
@@ -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: