Skip to content

Commit 83e8af4

Browse files
committed
-
1 parent 9cf627a commit 83e8af4

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

source_py3/python_toolbox/nifty_collections/lazy_tuple.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
import threading
1111
import collections
12+
import itertools
1213

13-
from python_toolbox import cute_iter_tools
1414
from python_toolbox import decorator_tools
1515
from python_toolbox import comparison_tools
1616
from python_toolbox import sequence_tools
@@ -176,8 +176,8 @@ def __len__(self):
176176
def __eq__(self, other):
177177
if not sequence_tools.is_immutable_sequence(other):
178178
return False
179-
for i, j in cute_iter_tools.izip_longest(self, other,
180-
fillvalue=_SENTINEL):
179+
for i, j in itertools.izip_longest(self, other,
180+
fillvalue=_SENTINEL):
181181
if (i is _SENTINEL) or (j is _SENTINEL):
182182
return False
183183
if i != j:
@@ -201,8 +201,8 @@ def __lt__(self, other):
201201
return False
202202
elif not self and not other:
203203
return False
204-
for a, b in cute_iter_tools.izip_longest(self, other,
205-
fillvalue=_SENTINEL):
204+
for a, b in itertools.izip_longest(self, other,
205+
fillvalue=_SENTINEL):
206206
if a is _SENTINEL:
207207
# `self` ran out. Now there can be two cases: (a) `other` ran
208208
# out too or (b) `other` didn't run out yet. In case of (a), we

source_py3/test_python_toolbox/test_persistent/test_cross_process_persistent.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
import copy
77
import pickle
8+
import itertools
89
import abc
910

1011
import nose
1112

12-
from python_toolbox import cute_iter_tools
1313
from python_toolbox import cute_testing
1414
from python_toolbox import import_tools
1515
from python_toolbox import queue_tools
@@ -42,7 +42,7 @@ def test():
4242
checkers = [_check_deepcopying, _check_process_passing]
4343
cross_process_persistent_classes = [A, CrossProcessPersistent]
4444

45-
yield from cute_iter_tools.product(
45+
yield from itertools.product(
4646
checkers,
4747
cross_process_persistent_classes,
4848
)
@@ -166,7 +166,7 @@ def test_helpful_warnings_for_old_protocols():
166166
cross_process_persistents = [A(), CrossProcessPersistent()]
167167
old_protocols = [0, 1]
168168

169-
iterator = cute_iter_tools.product(
169+
iterator = itertools.product(
170170
pickle_modules,
171171
cross_process_persistents,
172172
old_protocols

0 commit comments

Comments
 (0)