mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-12 14:46:57 -10:00
Avoid DeprecationWarning with Python 2.6+
This commit is contained in:
1 parent
193482a62b
commit
a8d57bb031
3 files changed
+9
-3
No files matched your search
+6
-2
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user