mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-08-03 22:31:34 +00:00
Trivial updates
This commit is contained in:
parent
38d5086b88
commit
1a95cea1f2
6 changed files with 11 additions and 9 deletions
4
thirdparty/keepalive/keepalive.py
vendored
4
thirdparty/keepalive/keepalive.py
vendored
|
|
@ -107,9 +107,11 @@ from __future__ import print_function
|
|||
|
||||
try:
|
||||
from thirdparty.six.moves import http_client as _http_client
|
||||
from thirdparty.six.moves import range as _range
|
||||
from thirdparty.six.moves import urllib as _urllib
|
||||
except ImportError:
|
||||
from six.moves import http_client as _http_client
|
||||
from six.moves import range as _range
|
||||
from six.moves import urllib as _urllib
|
||||
|
||||
import socket
|
||||
|
|
@ -569,7 +571,7 @@ def fetch(N, url, delay=0):
|
|||
import time
|
||||
lens = []
|
||||
starttime = time.time()
|
||||
for i in range(N):
|
||||
for i in _range(N):
|
||||
if delay and i > 0: time.sleep(delay)
|
||||
fo = _urllib.request.urlopen(url)
|
||||
foo = fo.read()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue