[geneagrapher] 199/226: Refactor get_data.py to satisfy PEP8 conventions.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:11:10 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 8ecccec6c44da6ace3ca4d9c8dca60894a87e842
Author: David Alber <alber.david at gmail.com>
Date:   Sun Dec 25 21:19:05 2011 -0800

    Refactor get_data.py to satisfy PEP8 conventions.
---
 tests/geneagrapher/testdata/get_data.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tests/geneagrapher/testdata/get_data.py b/tests/geneagrapher/testdata/get_data.py
index a84fe6b..440a654 100644
--- a/tests/geneagrapher/testdata/get_data.py
+++ b/tests/geneagrapher/testdata/get_data.py
@@ -9,7 +9,8 @@ if __name__ == '__main__':
                   79568583832]
 
     for record_id in record_ids:
-        url = 'http://genealogy.math.ndsu.nodak.edu/id.php?id='+str(record_id)
+        url_base = 'http://genealogy.math.ndsu.nodak.edu/id.php?id='
+        url = '{0}{1}'.format(url_base, record_id)
         print 'Getting record {}'.format(record_id)
         page = urllib2.urlopen(url)
         with open('{}.html'.format(record_id), 'w') as fout:

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