Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0c2474c

Browse files
committed
Minor update
1 parent a5a3092 commit 0c2474c

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

lib/utils/xrange.py

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
18
class xrange(object):
29
"""
310
Advanced implementation of xrange (supports slice/copy/etc.)
@@ -47,11 +54,7 @@ def __len__(self):
4754
return self._len()
4855

4956
def _len(self):
50-
try:
51-
return max(0, int((self.stop - self.start) / self.step))
52-
except Exception, ex:
53-
import pdb
54-
pdb.set_trace()
57+
return max(0, int((self.stop - self.start) / self.step))
5558

5659
def __getitem__(self, index):
5760
if isinstance(index, slice):

0 commit comments

Comments
 (0)