summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/visitors.py
diff options
context:
space:
mode:
authorКатаев Денис <bteamko@gmail.com>2017-03-17 14:19:21 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2017-03-17 14:19:21 -0400
commit8f7cf2990f9010ea4924f2525318dff0ba1028d7 (patch)
tree3e0e4b44d8c4d5c8ae8e63b9ff5842770ec23515 /lib/sqlalchemy/sql/visitors.py
parentd96fc5d02a921820aa5973daf66445c880ca6cd4 (diff)
downloadsqlalchemy-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/visitors.py')
-rw-r--r--lib/sqlalchemy/sql/visitors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/visitors.py b/lib/sqlalchemy/sql/visitors.py
index 7f0951824..99ceceed1 100644
--- a/lib/sqlalchemy/sql/visitors.py
+++ b/lib/sqlalchemy/sql/visitors.py
@@ -306,7 +306,7 @@ def replacement_traverse(obj, opts, replace):
replacement by a given replacement function."""
cloned = {}
- stop_on = set([id(x) for x in opts.get('stop_on', [])])
+ stop_on = {id(x) for x in opts.get('stop_on', [])}
def clone(elem, **kw):
if id(elem) in stop_on or \