[geneagrapher] 159/226: Replaced loop with list comprehension.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:58 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 b97b4176d9b56b26fd41b90504cd669f62c45fa1
Author: David Alber <alber.david at gmail.com>
Date:   Mon Oct 31 21:58:07 2011 -0700

    Replaced loop with list comprehension.
---
 geneagrapher/geneagrapher.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/geneagrapher/geneagrapher.py b/geneagrapher/geneagrapher.py
index 4feb077..940b482 100644
--- a/geneagrapher/geneagrapher.py
+++ b/geneagrapher/geneagrapher.py
@@ -48,8 +48,7 @@ class Geneagrapher:
         self.get_descendants = options.get_descendants
         self.verbose = options.verbose
         self.write_filename = options.filename
-        for arg in args:
-            self.leaf_ids.append(int(arg))
+        self.leaf_ids = [int(arg) for arg in args]
         
     def build_graph(self):
         """

-- 
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