summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/asyncpg.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-11-25 14:46:33 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-11-25 14:46:33 +0000
commit3619f084bfb5208ae45686a0993d620b2711adf2 (patch)
tree45a273205c06947c098b48971cdd3d0ab0052e9a /lib/sqlalchemy/dialects/postgresql/asyncpg.py
parente9c8b5307e6f107d03224453354ae0eaab7d42b1 (diff)
parent31acba8ff7c123a20ae308b7f4ab6df3df264b48 (diff)
downloadsqlalchemy-3619f084bfb5208ae45686a0993d620b2711adf2.tar.gz
Merge "Clean up most py3k compat" into main
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/asyncpg.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/asyncpg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/asyncpg.py b/lib/sqlalchemy/dialects/postgresql/asyncpg.py
index fe1f9fd5a..d6cde0087 100644
--- a/lib/sqlalchemy/dialects/postgresql/asyncpg.py
+++ b/lib/sqlalchemy/dialects/postgresql/asyncpg.py
@@ -99,6 +99,7 @@ To disable the prepared statement cache, use a value of zero::
""" # noqa
import collections
+import collections.abc as collections_abc
import decimal
import json as _py_json
import re
@@ -216,8 +217,8 @@ class AsyncpgJSONStrIndexType(sqltypes.JSON.JSONStrIndexType):
class AsyncpgJSONPathType(json.JSONPathType):
def bind_processor(self, dialect):
def process(value):
- assert isinstance(value, util.collections_abc.Sequence)
- tokens = [util.text_type(elem) for elem in value]
+ assert isinstance(value, collections_abc.Sequence)
+ tokens = [str(elem) for elem in value]
return tokens
return process