mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-03 20:34:43 +00:00
use xrange
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3296 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
d557b0208f
commit
1974bdcaf1
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ class SetList (list):
|
|||
"""Set new value, and eliminate a possible duplicate value."""
|
||||
# search index i with self[i] == item
|
||||
delidx = -1
|
||||
for i in range(len(self)):
|
||||
for i in xrange(len(self)):
|
||||
if self[i] == item and i != index:
|
||||
delidx = i
|
||||
# stop here, there can be only one duplicate
|
||||
|
|
|
|||
Loading…
Reference in a new issue