coding standards
This commit is contained in:
parent
3b5cabac5b
commit
c02b43f88f
|
@ -122,9 +122,9 @@ class JingleFileTransfer(JingleContent):
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
h = xmpp.Hashes()
|
h = xmpp.Hashes()
|
||||||
hash = h.calculateHash(self.session.hash_algo, file)
|
hash_ = h.calculateHash(self.session.hash_algo, file)
|
||||||
self.file_props['hash'] = hash
|
self.file_props['hash'] = hash_
|
||||||
h.addHash(hash, self.session.hash_algo)
|
h.addHash(hash_, self.session.hash_algo)
|
||||||
checksum = xmpp.Node(tag='checksum',
|
checksum = xmpp.Node(tag='checksum',
|
||||||
payload=[xmpp.Node(tag='file', payload=[h])])
|
payload=[xmpp.Node(tag='file', payload=[h])])
|
||||||
checksum.setNamespace(xmpp.NS_JINGLE_FILE_TRANSFER)
|
checksum.setNamespace(xmpp.NS_JINGLE_FILE_TRANSFER)
|
||||||
|
|
Loading…
Reference in New Issue