mirror of
https://git.deluge-torrent.org/deluge
synced 2025-09-17 15:21:56 +00:00
fix depreciation warning in py2.6
This commit is contained in:
parent
f97273e094
commit
388b21d6eb
1 changed files with 6 additions and 2 deletions
|
@ -22,9 +22,13 @@
|
|||
# Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
|
||||
import os
|
||||
from sha import sha
|
||||
import sys
|
||||
|
||||
if sys.version_info > (2, 6):
|
||||
from hashlib import sha1 as sha
|
||||
else:
|
||||
from sha import sha
|
||||
import urlparse
|
||||
|
||||
from deluge import bencode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue