Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5a3092 commit 0c2474cCopy full SHA for 0c2474c
1 file changed
lib/utils/xrange.py
@@ -1,3 +1,10 @@
1
+#!/usr/bin/env python
2
+
3
+"""
4
+Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/)
5
+See the file 'doc/COPYING' for copying permission
6
7
8
class xrange(object):
9
"""
10
Advanced implementation of xrange (supports slice/copy/etc.)
@@ -47,11 +54,7 @@ def __len__(self):
47
54
return self._len()
48
55
49
56
def _len(self):
50
- try:
51
- return max(0, int((self.stop - self.start) / self.step))
52
- except Exception, ex:
53
- import pdb
- pdb.set_trace()
57
+ return max(0, int((self.stop - self.start) / self.step))
58
59
def __getitem__(self, index):
60
if isinstance(index, slice):
0 commit comments