coding standards

This commit is contained in:
Jefry Lagrange 2012-01-24 10:04:14 -05:00
parent 3b5cabac5b
commit c02b43f88f
1 changed files with 3 additions and 3 deletions

View File

@ -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)