Update SQLAlchemy

This commit is contained in:
Ruud
2013-06-14 11:00:06 +02:00
parent 267ecfacab
commit 4aa6700ceb
124 changed files with 6500 additions and 5207 deletions
+6 -6
View File
@@ -1,5 +1,5 @@
# util/topological.py
# Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file>
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
@@ -29,7 +29,7 @@ def sort_as_subsets(tuples, allitems):
if not output:
raise CircularDependencyError(
"Circular dependency detected.",
find_cycles(tuples, allitems),
find_cycles(tuples, allitems),
_gen_edges(edges)
)
@@ -56,7 +56,7 @@ def find_cycles(tuples, allitems):
output = set()
# we'd like to find all nodes that are
# we'd like to find all nodes that are
# involved in cycles, so we do the full
# pass through the whole thing for each
# node in the original list.
@@ -86,7 +86,7 @@ def find_cycles(tuples, allitems):
def _gen_edges(edges):
return set([
(right, left)
for left in edges
for right in edges[left]
(right, left)
for left in edges
for right in edges[left]
])