Remove dependency on itertools -- a simple genexp suffices.
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index b8f6fb9..7a01e1d 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -9,7 +9,6 @@
"""
from abc import ABCMeta, abstractmethod
-import itertools
__all__ = ["Hashable", "Iterable", "Iterator",
"Sized", "Container", "Callable",
@@ -189,7 +188,8 @@
def __or__(self, other):
if not isinstance(other, Iterable):
return NotImplemented
- return self._from_iterable(itertools.chain(self, other))
+ chain = (e for s in (self, other) for e in s)
+ return self._from_iterable(chain)
def __sub__(self, other):
if not isinstance(other, Set):