independence and python 3 compat for setutils

This commit is contained in:
Mahmoud Hashemi 2015-04-10 14:43:51 -07:00
parent 86134aefe4
commit cace0fd859
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@ from bisect import bisect_left
from itertools import chain, islice
from collections import MutableSet
import operator
from .compat import lrange
try:
from compat import make_sentinel
@ -47,7 +46,7 @@ class IndexedSet(MutableSet):
Args:
other (iterable): An optional iterable used to initialize the set.
>>> x = IndexedSet(lrange(4) + lrange(8))
>>> x = IndexedSet(list(range(4)) + list(range(8)))
>>> x
IndexedSet([0, 1, 2, 3, 4, 5, 6, 7])
>>> x - set(range(2))