mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Fixes #2175
This commit is contained in:
@@ -85,3 +85,9 @@ class xrange(object):
|
||||
|
||||
def _index(self, i):
|
||||
return self.start + self.step * i
|
||||
|
||||
def index(self, i):
|
||||
if self.start <= i < self.stop:
|
||||
return i - self.start
|
||||
else:
|
||||
raise ValueError("%d is not in list" % i)
|
||||
|
||||
Reference in New Issue
Block a user