diff options
author | Катаев Денис <bteamko@gmail.com> | 2017-03-17 14:19:21 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-03-17 14:19:21 -0400 |
commit | 8f7cf2990f9010ea4924f2525318dff0ba1028d7 (patch) | |
tree | 3e0e4b44d8c4d5c8ae8e63b9ff5842770ec23515 /lib/sqlalchemy/sql/operators.py | |
parent | d96fc5d02a921820aa5973daf66445c880ca6cd4 (diff) | |
download | sqlalchemy-8f7cf2990f9010ea4924f2525318dff0ba1028d7.tar.gz |
New features from python 2.7
After bump minimum supported version to 2.7 (1da9d3752160430c91534a8868ceb8c5ad1451d4), we can use new syntax.
Change-Id: Ib064c75a00562e641d132f9c57e5e69744200e05
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/347
Diffstat (limited to 'lib/sqlalchemy/sql/operators.py')
-rw-r--r-- | lib/sqlalchemy/sql/operators.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/operators.py b/lib/sqlalchemy/sql/operators.py index 01bee62cf..8f697b27e 100644 --- a/lib/sqlalchemy/sql/operators.py +++ b/lib/sqlalchemy/sql/operators.py @@ -1013,9 +1013,9 @@ def json_path_getitem_op(a, b): raise NotImplementedError() -_commutative = set([eq, ne, add, mul]) +_commutative = {eq, ne, add, mul} -_comparison = set([eq, ne, lt, gt, ge, le, between_op, like_op]) +_comparison = {eq, ne, lt, gt, ge, le, between_op, like_op} def is_comparison(op): |