mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-15 20:29:04 +00:00
One more 2to3 baby step
This commit is contained in:
@@ -29,7 +29,7 @@ class ProgressBar(object):
|
||||
|
||||
def _convertSeconds(self, value):
|
||||
seconds = value
|
||||
minutes = seconds / 60
|
||||
minutes = seconds // 60
|
||||
seconds = seconds - (minutes * 60)
|
||||
|
||||
return "%.2d:%.2d" % (minutes, seconds)
|
||||
|
||||
@@ -58,7 +58,7 @@ class xrange(object):
|
||||
return self._len()
|
||||
|
||||
def _len(self):
|
||||
return max(0, int((self.stop - self.start) / self.step))
|
||||
return max(0, int((self.stop - self.start) // self.step))
|
||||
|
||||
def __contains__(self, value):
|
||||
return (self.start <= value < self.stop) and (value - self.start) % self.step == 0
|
||||
|
||||
Reference in New Issue
Block a user