mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-28 20:43:49 +03:00
Avoid DeprecationWarning with Python 2.6+
This commit is contained in:
parent
193482a62b
commit
a8d57bb031
|
@ -116,6 +116,9 @@ Sven Schluter <sschlueter@netzwerk.cc>
|
||||||
for providing with a patch for waiting a number of seconds between
|
for providing with a patch for waiting a number of seconds between
|
||||||
each HTTP request
|
each HTTP request
|
||||||
|
|
||||||
|
Uemit Seren <uemit.seren@gmail.com>
|
||||||
|
for reporting a minor adjustment when running with python 2.6
|
||||||
|
|
||||||
Sumit Siddharth <sid@notsosecure.com>
|
Sumit Siddharth <sid@notsosecure.com>
|
||||||
for providing me with ideas on the implementation on a couple of
|
for providing me with ideas on the implementation on a couple of
|
||||||
features
|
features
|
||||||
|
|
|
@ -23,9 +23,13 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
try:
|
||||||
import md5
|
import md5
|
||||||
import sha
|
import sha
|
||||||
|
except DeprecationWarning, _:
|
||||||
|
from hashlib import md5
|
||||||
|
from hashlib import sha
|
||||||
|
|
||||||
import struct
|
import struct
|
||||||
import urllib
|
import urllib
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@ Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
|
||||||
import httplib
|
import httplib
|
||||||
import md5
|
|
||||||
import re
|
import re
|
||||||
import socket
|
import socket
|
||||||
import time
|
import time
|
||||||
|
|
Loading…
Reference in New Issue
Block a user