diff --git a/boltons/setutils.py b/boltons/setutils.py index 86eaf28..5f51184 100644 --- a/boltons/setutils.py +++ b/boltons/setutils.py @@ -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))