diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2021-11-25 14:46:33 +0000 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-11-25 14:46:33 +0000 |
| commit | 3619f084bfb5208ae45686a0993d620b2711adf2 (patch) | |
| tree | 45a273205c06947c098b48971cdd3d0ab0052e9a /lib/sqlalchemy/sql/operators.py | |
| parent | e9c8b5307e6f107d03224453354ae0eaab7d42b1 (diff) | |
| parent | 31acba8ff7c123a20ae308b7f4ab6df3df264b48 (diff) | |
| download | sqlalchemy-3619f084bfb5208ae45686a0993d620b2711adf2.tar.gz | |
Merge "Clean up most py3k compat" into main
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
| -rw-r--r-- | lib/sqlalchemy/sql/operators.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 675048cd0..6d45cd033 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -1394,7 +1394,7 @@ def _escaped_like_impl(fn, other, escape, autoescape): if escape is None: escape = "/" - if not isinstance(other, util.compat.string_types): + if not isinstance(other, str): raise TypeError("String value expected when autoescape=True") if escape not in ("%", "_"): |
