[geneagrapher] 169/226: Changed queue pop order so that it is actually a queue.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:11:02 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository geneagrapher.

commit ad44e33c5f1187542adcdd4bb17faa57a8f80c60
Author: David Alber <alber.david at gmail.com>
Date:   Fri Nov 4 22:56:15 2011 -0700

    Changed queue pop order so that it is actually a queue.
---
 geneagrapher/geneagrapher.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/geneagrapher/geneagrapher.py b/geneagrapher/geneagrapher.py
index 8a87a75..c629ab9 100644
--- a/geneagrapher/geneagrapher.py
+++ b/geneagrapher/geneagrapher.py
@@ -61,7 +61,7 @@ class Geneagrapher:
 
         # Grab "leaf" nodes.
         while len(leaf_grab_queue) != 0:
-            id = leaf_grab_queue.pop()
+            id = leaf_grab_queue.pop(0)
             if not self.graph.has_node(id):
                 # Then this information has not yet been grabbed.
                 grabber = Grabber(id)
@@ -77,7 +77,7 @@ class Geneagrapher:
         # Grab ancestors of leaf nodes.
         if self.get_ancestors:
             while len(ancestor_grab_queue) != 0:
-                id = ancestor_grab_queue.pop()
+                id = ancestor_grab_queue.pop(0)
                 if not self.graph.has_node(id):
                     # Then this information has not yet been grabbed.
                     grabber = Grabber(id)
@@ -90,7 +90,7 @@ class Geneagrapher:
         # Grab descendants of leaf nodes.
         if self.get_descendants:
             while len(descendant_grab_queue) != 0:
-                id = descendant_grab_queue.pop()
+                id = descendant_grab_queue.pop(0)
                 if not self.graph.has_node(id):
                     # Then this information has not yet been grabbed.
                     grabber = Grabber(id)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git



More information about the debian-science-commits mailing list