mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
fix depreciation warning in py2.6
This commit is contained in:
parent
f97273e094
commit
388b21d6eb
@ -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…
x
Reference in New Issue
Block a user