Skip to content

Commit 5a69af2

Browse files
committed
-
1 parent e64d563 commit 5a69af2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

source_py2/python_toolbox/nifty_collections/lazy_tuple.py

Lines changed: 3 additions & 3 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,7 +176,7 @@ 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,
179+
for i, j in itertools.izip_longest(self, other,
180180
fillvalue=_SENTINEL):
181181
if (i is _SENTINEL) or (j is _SENTINEL):
182182
return False
@@ -201,7 +201,7 @@ 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,
204+
for a, b in itertools.izip_longest(self, other,
205205
fillvalue=_SENTINEL):
206206
if a is _SENTINEL:
207207
# `self` ran out. Now there can be two cases: (a) `other` ran

source_py2/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,12 +5,12 @@
55

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

1112
import nose
1213

13-
from python_toolbox import cute_iter_tools
1414
from python_toolbox import cute_testing
1515
from python_toolbox import import_tools
1616
from python_toolbox import queue_tools
@@ -43,7 +43,7 @@ def test():
4343
checkers = [_check_deepcopying, _check_process_passing]
4444
cross_process_persistent_classes = [A, CrossProcessPersistent]
4545

46-
iterator = cute_iter_tools.product(
46+
iterator = itertools.product(
4747
checkers,
4848
cross_process_persistent_classes,
4949
)
@@ -170,7 +170,7 @@ def test_helpful_warnings_for_old_protocols():
170170
cross_process_persistents = [A(), CrossProcessPersistent()]
171171
old_protocols = [0, 1]
172172

173-
iterator = cute_iter_tools.product(
173+
iterator = itertools.product(
174174
pickle_modules,
175175
cross_process_persistents,
176176
old_protocols

0 commit comments

Comments
 (0)