Skip to content

Commit bc32f72

Browse files
authored
Version 0.9.3 (#50)
1 parent 0e396cc commit bc32f72

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

CHANGES.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
Version 0.9.3
5+
-------------
6+
7+
- Fixing imports in python 3.7
8+
49
Version 0.9.2
510
-------------
611

reusables/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
from reusables.wrappers import *
2121

2222
__author__ = "Chris Griffith"
23-
__version__ = "0.9.2"
23+
__version__ = "0.9.3"

reusables/process_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def check_returncode(self):
9898

9999

100100
def run_in_pool(target, iterable, threaded=True, processes=4,
101-
async=False, target_kwargs=None):
101+
asynchronous=False, target_kwargs=None):
102102
""" Run a set of iterables to a function in a Threaded or MP Pool.
103103
104104
.. code: python
@@ -114,7 +114,7 @@ def func(a):
114114
:param iterable: positional arg to pass to function
115115
:param threaded: Threaded if True multiprocessed if False
116116
:param processes: Number of workers
117-
:param async: will do map_async if True
117+
:param asynchronous: will do map_async if True
118118
:param target_kwargs: Keyword arguments to set on the function as a partial
119119
:return: pool results
120120
"""
@@ -125,7 +125,7 @@ def func(a):
125125

126126
p = my_pool(processes)
127127
try:
128-
results = (p.map_async(target, iterable) if async
128+
results = (p.map_async(target, iterable) if asynchronous
129129
else p.map(target, iterable))
130130
finally:
131131
p.close()

reusables/tasker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,4 @@ def run(self):
274274
raise NotImplementedError("Please run main_loop, "
275275
"backgrounding not supported on Windows")
276276
self.background_process = mp.Process(target=self.main_loop)
277-
self.background_process.start()
277+
self.background_process.start()

0 commit comments

Comments
 (0)