[Reproducible-commits] [debbindiff] 05/06: Use list comprehension over map-plus-lambda
Chris Lamb
lamby at moszumanska.debian.org
Tue Feb 3 11:57:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository debbindiff.
commit 8be603afb5b4a96d36cb84c9534cf96390d447e6
Author: Chris Lamb <lamby at debian.org>
Date: Tue Feb 3 11:53:49 2015 +0000
Use list comprehension over map-plus-lambda
---
debbindiff/presenters/html.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/debbindiff/presenters/html.py b/debbindiff/presenters/html.py
index e508edb..456ba69 100644
--- a/debbindiff/presenters/html.py
+++ b/debbindiff/presenters/html.py
@@ -185,9 +185,9 @@ def create_diff(lines1, lines2):
path2 = os.path.join(temp_dir, 'content2')
diff_path = os.path.join(temp_dir, 'diff.html')
with open(path1, 'w') as f:
- f.writelines(map(lambda u: u.encode('utf-8'), lines1))
+ f.writelines([u.encode('utf-8') for u in lines1])
with open(path2, 'w') as f:
- f.writelines(map(lambda u: u.encode('utf-8'), lines2))
+ f.writelines([u.encode('utf-8') for u in lines2])
optimize_files_for_diff(path1, path2)
p = subprocess.Popen(
['vim', '-n', '-N', '-e', '-i', 'NONE', '-u', 'NORC', '-U', 'NORC',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debbindiff.git
More information about the Reproducible-commits
mailing list