Parcourir la source

get hash return hash

master
Robin Thoni il y a 8 ans
Parent
révision
389dfb899d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      torrentfile.py

+ 1
- 1
torrentfile.py Voir le fichier

@@ -40,4 +40,4 @@ class TorrentFile:
40 40
 
41 41
     def getHash(self):
42 42
         bencoded = bencode.bencode(self.info)
43
-        return hashlib.sha1(bencoded).hexdigest()
43
+        return hashlib.sha1(bencoded)

Chargement…
Annuler
Enregistrer