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:
authorJefry Lagrange <jefry.reyes@gmail.com>2012-01-24 07:28:07 +0400
committerJefry Lagrange <jefry.reyes@gmail.com>2012-01-24 07:28:07 +0400
commit5142ebd626572c769cf36490436933a75780ecc3 (patch)
tree892bf92b5fea8ef455a1bd2473ee982b57887715 /src/common/xmpp
parentc51fb07d09434dd9b894df51c9495014ea485806 (diff)
check file integrity when transfer is completed
Diffstat (limited to 'src/common/xmpp')
-rw-r--r--src/common/xmpp/protocol.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/common/xmpp/protocol.py b/src/common/xmpp/protocol.py
index 82b16a9c0..c2c00f9d4 100644
--- a/src/common/xmpp/protocol.py
+++ b/src/common/xmpp/protocol.py
@@ -1067,7 +1067,6 @@ class Hashes(Node):
"""
hl = None
hash = None
-
# file_string can be a string or a file
if type(file_string) == str: # if it is a string
if algo == 'md5':
@@ -1104,7 +1103,7 @@ class Hashes(Node):
hl.update(line)
hash = hl.hexdigest()
- self.addHash(hash, algo)
+ return hash
def addHash(self, hash, algo):
"""