mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
Avoid deprecation warning on sha and md5 libraries on Python >= 2.6
This commit is contained in:
parent
6f4035938b
commit
546a6c32e3
|
@ -24,11 +24,11 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|||
|
||||
|
||||
try:
|
||||
import md5
|
||||
import sha
|
||||
except DeprecationWarning, _:
|
||||
from hashlib import md5
|
||||
from hashlib import sha
|
||||
except ImportError, _:
|
||||
import md5
|
||||
import sha
|
||||
|
||||
import struct
|
||||
import urllib
|
||||
|
|
Loading…
Reference in New Issue
Block a user