[Reproducible-commits] [debbindiff] 01/01: Properly encode strings before writing them to tempfiles
Jérémy Bobbio
lunar at moszumanska.debian.org
Sun Nov 16 20:30:51 UTC 2014
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository debbindiff.
commit fcdc89ddaa64bc8c4090e24ce4e71be3fdf30d6e
Author: Jérémy Bobbio <lunar at debian.org>
Date: Sun Nov 16 21:17:18 2014 +0100
Properly encode strings before writing them to tempfiles
---
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 2badede..88568ff 100644
--- a/debbindiff/presenters/html.py
+++ b/debbindiff/presenters/html.py
@@ -121,9 +121,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(lines1)
+ f.writelines(map(lambda u: u.encode('utf-8'), lines1))
with open(path2, 'w') as f:
- f.writelines(lines2)
+ f.writelines(map(lambda u: u.encode('utf-8'), lines2))
p = subprocess.Popen(
['vim', '-n', '-N', '-e', '-i', 'NONE', '-u', 'NORC', '-U', 'NORC',
'-d', path1, path2,
--
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