From 0c2474cc22ceab0b3236f54a6547b201e0c27eb2 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 14 Jan 2013 16:21:40 +0100 Subject: [PATCH] Minor update --- lib/utils/xrange.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/lib/utils/xrange.py b/lib/utils/xrange.py index de869448e..6ce1b9f48 100644 --- a/lib/utils/xrange.py +++ b/lib/utils/xrange.py @@ -1,3 +1,10 @@ +#!/usr/bin/env python + +""" +Copyright (c) 2006-2012 sqlmap developers (http://sqlmap.org/) +See the file 'doc/COPYING' for copying permission +""" + class xrange(object): """ Advanced implementation of xrange (supports slice/copy/etc.) @@ -47,11 +54,7 @@ class xrange(object): return self._len() def _len(self): - try: - return max(0, int((self.stop - self.start) / self.step)) - except Exception, ex: - import pdb - pdb.set_trace() + return max(0, int((self.stop - self.start) / self.step)) def __getitem__(self, index): if isinstance(index, slice):