]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fix py3k bug re: dictionary values(), fixes #3005
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 28 Mar 2014 15:02:34 +0000 (11:02 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 28 Mar 2014 15:02:34 +0000 (11:02 -0400)
lib/sqlalchemy/sql/selectable.py

index 7a220f949225e9b27270d3b9e0bf718d80778a26..9a43c404d5070ee5e8822696131d981e3e9d4d46 100644 (file)
@@ -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: