Skip to content

Commit 26518c5

Browse files
committed
-
1 parent da66eff commit 26518c5

File tree

4 files changed

+4
-58
lines changed

4 files changed

+4
-58
lines changed

source_py2/python_toolbox/cute_iter_tools.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def _iterate_overlapping_subsequences(iterable, length, wrap_around):
5757
if length == 1:
5858
for item in iterable:
5959
yield item
60+
return
6061

6162
assert length >= 2
6263

source_py2/python_toolbox/future_tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,14 @@ def result_iterator():
6363
return result_iterator()
6464

6565

66-
def map(self, function, *iterables, timeout=None, as_completed=False):
66+
def map(self, function, iterable, timeout=None, as_completed=False):
6767
'''
6868
Get a parallelized version of `map(function, iterable)`.
6969
7070
Specify `as_completed=False` to get the results that were calculated
7171
first to be returned first, instead of using the order of `iterable`.
7272
'''
73+
iterables = (iterable,)
7374

7475
if timeout is not None:
7576
end_time = timeout + time.time()

source_py2/test_python_toolbox/test_logic_tools/test_all_equal.py

Lines changed: 0 additions & 56 deletions
This file was deleted.

source_py2/test_python_toolbox/test_misc_tools/test_overridable_property.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def meow(self):
1616
assert a.meow == 'bark bark!'
1717
assert a.meow == 'bark bark!'
1818
assert a.meow == 'bark bark!'
19-
a.meow = 'Meow indeed, ma chérie.'
19+
a.meow = 'Meow indeed, my love.'
2020
assert a.meow == 'Meow indeed, my love.'
2121

2222

0 commit comments

Comments
 (0)