mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
range to xrange (leftovers)
This commit is contained in:
parent
439d003753
commit
41db0e0eea
|
@ -258,7 +258,7 @@ class UDF:
|
|||
else:
|
||||
logger.warn("invalid value, only digits are allowed")
|
||||
|
||||
for x in range(0, udfCount):
|
||||
for x in xrange(0, udfCount):
|
||||
while True:
|
||||
msg = "what is the name of the UDF number %d? " % (x + 1)
|
||||
udfName = readInput(msg)
|
||||
|
@ -293,7 +293,7 @@ class UDF:
|
|||
else:
|
||||
logger.warn("invalid value, only digits >= 0 are allowed")
|
||||
|
||||
for y in range(0, parCount):
|
||||
for y in xrange(0, parCount):
|
||||
msg = "what is the data-type of input parameter "
|
||||
msg += "number %d? (default: %s) " % ((y + 1), defaultType)
|
||||
|
||||
|
|
2
thirdparty/chardet/eucjpprober.py
vendored
2
thirdparty/chardet/eucjpprober.py
vendored
|
@ -51,7 +51,7 @@ class EUCJPProber(MultiByteCharSetProber):
|
|||
|
||||
def feed(self, aBuf):
|
||||
aLen = len(aBuf)
|
||||
for i in range(0, aLen):
|
||||
for i in xrange(0, aLen):
|
||||
# PY3K: aBuf is a byte array, so aBuf[i] is an int, not a byte
|
||||
codingState = self._mCodingSM.next_state(aBuf[i])
|
||||
if codingState == constants.eError:
|
||||
|
|
2
thirdparty/chardet/mbcharsetprober.py
vendored
2
thirdparty/chardet/mbcharsetprober.py
vendored
|
@ -52,7 +52,7 @@ class MultiByteCharSetProber(CharSetProber):
|
|||
|
||||
def feed(self, aBuf):
|
||||
aLen = len(aBuf)
|
||||
for i in range(0, aLen):
|
||||
for i in xrange(0, aLen):
|
||||
codingState = self._mCodingSM.next_state(aBuf[i])
|
||||
if codingState == constants.eError:
|
||||
if constants._debug:
|
||||
|
|
2
thirdparty/chardet/sjisprober.py
vendored
2
thirdparty/chardet/sjisprober.py
vendored
|
@ -51,7 +51,7 @@ class SJISProber(MultiByteCharSetProber):
|
|||
|
||||
def feed(self, aBuf):
|
||||
aLen = len(aBuf)
|
||||
for i in range(0, aLen):
|
||||
for i in xrange(0, aLen):
|
||||
codingState = self._mCodingSM.next_state(aBuf[i])
|
||||
if codingState == constants.eError:
|
||||
if constants._debug:
|
||||
|
|
2
thirdparty/chardet/utf8prober.py
vendored
2
thirdparty/chardet/utf8prober.py
vendored
|
@ -69,7 +69,7 @@ class UTF8Prober(CharSetProber):
|
|||
def get_confidence(self):
|
||||
unlike = 0.99
|
||||
if self._mNumOfMBChar < 6:
|
||||
for i in range(0, self._mNumOfMBChar):
|
||||
for i in xrange(0, self._mNumOfMBChar):
|
||||
unlike = unlike * ONE_CHAR_PROB
|
||||
return 1.0 - unlike
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue
Block a user