Ver código fonte

get hash return hash

master
Robin Thoni 8 anos atrás
pai
commit
389dfb899d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      torrentfile.py

+ 1
- 1
torrentfile.py Ver arquivo

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

Carregando…
Cancelar
Salvar