summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/visitors.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-12-18 17:57:15 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-12-18 17:57:15 +0000
commitbe5d3263436b81fb179c8189f1064d477d5fb3e6 (patch)
tree7f99d53445ef85d4bce4fcf6b5e244779cbcde1c /lib/sqlalchemy/sql/visitors.py
parent98d7d70674b443d1691971926af1b1db4d7101dc (diff)
downloadsqlalchemy-be5d3263436b81fb179c8189f1064d477d5fb3e6.tar.gz
merged -r5299:5438 of py3k warnings branch. this fixes some sqlite py2.6 testing issues,
and also addresses a significant chunk of py3k deprecations. It's mainly expicit __hash__ methods. Additionally, most usage of sets/dicts to store columns uses util-based placeholder names.
Diffstat (limited to 'lib/sqlalchemy/sql/visitors.py')
-rw-r--r--lib/sqlalchemy/sql/visitors.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/sql/visitors.py b/lib/sqlalchemy/sql/visitors.py
index 17b9c59d5..a5bd497ae 100644
--- a/lib/sqlalchemy/sql/visitors.py
+++ b/lib/sqlalchemy/sql/visitors.py
@@ -207,7 +207,7 @@ def traverse_depthfirst(obj, opts, visitors):
def cloned_traverse(obj, opts, visitors):
"""clone the given expression structure, allowing modifications by visitors."""
- cloned = {}
+ cloned = util.column_dict()
def clone(element):
if element not in cloned:
@@ -234,8 +234,8 @@ def cloned_traverse(obj, opts, visitors):
def replacement_traverse(obj, opts, replace):
"""clone the given expression structure, allowing element replacement by a given replacement function."""
- cloned = {}
- stop_on = set(opts.get('stop_on', []))
+ cloned = util.column_dict()
+ stop_on = util.column_set(opts.get('stop_on', []))
def clone(element):
newelem = replace(element)