[diffoscope] 01/01: bin/trydiffoscope: Open files in binary mode to support comparing binary files.

Chris Lamb chris at chris-lamb.co.uk
Tue Aug 2 00:41:58 CEST 2016


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

lamby pushed a commit to branch master
in repository diffoscope.

commit 1e5e9b868d7186ae74244dec5af33c03f974d5e3
Author: Chris Lamb <lamby at debian.org>
Date:   Mon Aug 1 18:40:58 2016 -0400

    bin/trydiffoscope: Open files in binary mode to support comparing binary files.
---
 bin/trydiffoscope | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/trydiffoscope b/bin/trydiffoscope
index a92fed3..390e8ec 100755
--- a/bin/trydiffoscope
+++ b/bin/trydiffoscope
@@ -29,8 +29,8 @@ class TryDiffoscope(object):
 
     def main(self):
         response = requests.post(self.args.url, files={
-            'file_a': open(self.args.file[0]),
-            'file_b': open(self.args.file[1]),
+            'file_a': open(self.args.file[0], 'rb'),
+            'file_b': open(self.args.file[1], 'rb'),
         })
 
         response.raise_for_status()

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


More information about the diffoscope mailing list