Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2014-06-01 17:40:17 +0400
committerYann Leboulanger <asterix@lagaule.org>2014-06-01 17:40:17 +0400
commita170fd4b8308bc3830569cf4c1cce01ecb0fa75b (patch)
tree916248ac7da1e19de01da152ab863ca29fa9b992 /src/gui_interface.py
parent0a77bb574ffb6205870418ccfe7bdf7f60ab3c28 (diff)
correctly compute hash when doing jingle FT
Diffstat (limited to 'src/gui_interface.py')
-rw-r--r--src/gui_interface.py2
1 files changed, 1 insertions, 1 deletions
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_)