[misc] 02/04: Don't use `map` in Python 3

Chris Lamb chris at chris-lamb.co.uk
Sun Aug 28 00:39:39 UTC 2016


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

lamby pushed a commit to branch master
in repository misc.

commit f683cb8df572c7fd683b76aed20713550559a07a
Author: Chris Lamb <lamby at debian.org>
Date:   Sun Aug 28 01:00:37 2016 +0100

    Don't use `map` in Python 3
---
 reports/bin/generate-draft | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/reports/bin/generate-draft b/reports/bin/generate-draft
index 25bd4b7..6015ede 100755
--- a/reports/bin/generate-draft
+++ b/reports/bin/generate-draft
@@ -23,8 +23,9 @@ PROJECTS = (
 )
 
 def main(*args):
-    for d in map(sibling_repo_gitdir, list(PROJECTS) + ['notes']):
-        ensure_dir(d)
+    for x in PROJECTS + ('notes',):
+        ensure_dir(sibling_repo_gitdir(x))
+
     week = int(args[0]) if len(args) > 0 else prev_week()
 
     data = get_data(week)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list