[diffoscope] 01/01: Decode Md5sumsFile in utf-8

Mattia Rizzolo mattia at debian.org
Sun May 29 20:16:24 CEST 2016


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

mattia pushed a commit to branch master
in repository diffoscope.

commit 9572f9e7189d366b268ec3dd69fc87ca1d895736
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Sun May 29 17:59:04 2016 +0000

    Decode Md5sumsFile in utf-8
    
    Closes: #823874
---
 diffoscope/comparators/deb.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/deb.py b/diffoscope/comparators/deb.py
index d528f06..536d218 100644
--- a/diffoscope/comparators/deb.py
+++ b/diffoscope/comparators/deb.py
@@ -134,7 +134,7 @@ class Md5sumsFile(File):
             return {}
 
     def strip_checksum(self, path):
-        with open(path) as f:
+        with open(path, 'r', encoding='utf-8') as f:
             for line in f:
                 yield " ".join(line.split(" ")[2:])
 

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


More information about the diffoscope mailing list