Avoid DeprecationWarning with Python 2.6+

This commit is contained in:
Bernardo Damele
2009-01-22 23:53:01 +00:00
parent 193482a62b
commit a8d57bb031
3 changed files with 9 additions and 3 deletions

View File

@@ -23,9 +23,13 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
"""
try:
import md5
import sha
except DeprecationWarning, _:
from hashlib import md5
from hashlib import sha
import md5
import sha
import struct
import urllib