mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +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:
|
try:
|
||||||
import md5
|
|
||||||
import sha
|
|
||||||
except DeprecationWarning, _:
|
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
from hashlib import sha
|
from hashlib import sha
|
||||||
|
except ImportError, _:
|
||||||
|
import md5
|
||||||
|
import sha
|
||||||
|
|
||||||
import struct
|
import struct
|
||||||
import urllib
|
import urllib
|
||||||
|
|
Loading…
Reference in New Issue
Block a user