[Reproducible-commits] [diffoscope] 14/15: Ignore encoding errors in diff output

Jérémy Bobbio lunar at moszumanska.debian.org
Thu Dec 3 11:08:00 UTC 2015


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

lunar pushed a commit to branch pu/parallel2
in repository diffoscope.

commit cc4de00ccb69355c54f183a299041ca4ec13a411
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Thu Nov 19 15:15:28 2015 +0000

    Ignore encoding errors in diff output
---
 diffoscope/difference.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/difference.py b/diffoscope/difference.py
index a86a2f4..32dd62e 100644
--- a/diffoscope/difference.py
+++ b/diffoscope/difference.py
@@ -58,7 +58,7 @@ class DiffParser(object):
 
     def parse(self):
         for line in self._output.readlines():
-            self._action = self._action(line.decode('utf-8'))
+            self._action = self._action(line.decode('utf-8', errors='replace'))
         self._success = True
         self._output.close()
 

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



More information about the Reproducible-commits mailing list