From a170fd4b8308bc3830569cf4c1cce01ecb0fa75b Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 1 Jun 2014 15:40:17 +0200 Subject: [PATCH] correctly compute hash when doing jingle FT --- src/gui_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui_interface.py b/src/gui_interface.py index 376fef028..19b2e9b80 100644 --- a/src/gui_interface.py +++ b/src/gui_interface.py @@ -966,7 +966,7 @@ class Interface: ft_win.set_status(file_props, 'ok') h = Hashes() try: - file_ = open(file_props.file_name, 'r') + file_ = open(file_props.file_name, 'rb') except: return hash_ = h.calculateHash(file_props.algo, file_)