]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- fixed usage of 2.4-only "reversed" in topological.py [ticket:506]
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 8 Mar 2007 23:14:25 +0000 (23:14 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 8 Mar 2007 23:14:25 +0000 (23:14 +0000)
CHANGES
lib/sqlalchemy/topological.py

diff --git a/CHANGES b/CHANGES
index 5501d4cefc0a49ba477754f58f99768799feb3ed..96391716c076a815c4c6379184ad4454c4dd2717 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -24,6 +24,7 @@
     constructing subqueries of joins which Postgres complains about if 
     duplicate column names are present.
     - fixed use_alter flag on ForeignKeyConstraint [ticket:503]
+    - fixed usage of 2.4-only "reversed" in topological.py [ticket:506]
 - orm:
     - a full select() construct can be passed to query.select() (which
       worked anyway), but also query.selectfirst(), query.selectone() which
index 41fa9d9b2db35f12d8b92672e5fd210e2d09d6d1..bad71293e45214257d436c3eddfa35eac5284455 100644 (file)
@@ -245,7 +245,7 @@ class QueueDependencySorter(object):
         # order of the list has no semantics for the algorithmic
         independents = []
         # in reverse topological order
-        for node in reversed(nodes):
+        for node in util.reversed(nodes):
             # nodes subtree and cycles contain the node itself
             subtree = util.Set([node])
             if node.cycles is not None: