fix depreciation warning in py2.6

This commit is contained in:
Damien Churchill 2009-01-01 18:28:33 +00:00
parent f97273e094
commit 388b21d6eb

View File

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