diff --git a/docs/conf.py b/docs/conf.py index e67e0a4..d9a8667 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -12,6 +12,7 @@ # import os import sys + sys.path.insert(1, os.path.abspath('..')) diff --git a/parmap/__init__.py b/parmap/__init__.py index 67dfc58..a9be844 100644 --- a/parmap/__init__.py +++ b/parmap/__init__.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -from .parmap import map, starmap, map_async, starmap_async +from .parmap import map, map_async, starmap, starmap_async __all__ = ['map', 'starmap', 'map_async', 'starmap_async'] diff --git a/parmap/parmap.py b/parmap/parmap.py index 1bd05ab..bc18d56 100644 --- a/parmap/parmap.py +++ b/parmap/parmap.py @@ -69,9 +69,8 @@ # at http://stackoverflow.com/a/5443941/446149 import multiprocessing -import warnings import typing as T - +import warnings from itertools import repeat from multiprocessing.pool import AsyncResult diff --git a/test_parmap.py b/test_parmap.py index 0d9011c..e28da1e 100644 --- a/test_parmap.py +++ b/test_parmap.py @@ -1,8 +1,9 @@ +import multiprocessing +import time import unittest import warnings + import parmap -import time -import multiprocessing # The fact that parallelization is happening is controlled via reasonable # guesses of the parmap overhead and the CPU speeds