From 610e0594e249cd0bb28cb2bd4a7624f63f4510bb Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 28 Mar 2014 11:02:34 -0400 Subject: [PATCH] - fix py3k bug re: dictionary values(), fixes #3005 --- lib/sqlalchemy/sql/selectable.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sqlalchemy/sql/selectable.py b/lib/sqlalchemy/sql/selectable.py index 7a220f9492..9a43c404d5 100644 --- a/lib/sqlalchemy/sql/selectable.py +++ b/lib/sqlalchemy/sql/selectable.py @@ -761,7 +761,7 @@ class Join(FromClause): "Can't find any foreign key relationships " "between '%s' and '%s'.%s" % (a.description, b.description, hint)) - crit = [(x == y) for x, y in constraints.values()[0]] + crit = [(x == y) for x, y in list(constraints.values())[0]] if len(crit) == 1: return (crit[0]) else: -- 2.39.5