From cace0fd85975d814d56f84264ef107101f1cda06 Mon Sep 17 00:00:00 2001 From: Mahmoud Hashemi Date: Fri, 10 Apr 2015 14:43:51 -0700 Subject: [PATCH] independence and python 3 compat for setutils --- boltons/setutils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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))