From 11eeb8574b7b4620ac6fd440cb251f8aa2458f5b Mon Sep 17 00:00:00 2001 From: Scott Gasch Date: Thu, 8 Jul 2021 22:25:12 -0700 Subject: Reduce import scopes, remove cycles. --- parallelize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'parallelize.py') diff --git a/parallelize.py b/parallelize.py index 334dc4e..0822095 100644 --- a/parallelize.py +++ b/parallelize.py @@ -6,9 +6,6 @@ from enum import Enum import functools import typing -import executors -import smart_future - ps_count = 0 thread_count = 0 remote_count = 0 @@ -64,6 +61,9 @@ def parallelize( @functools.wraps(funct) def inner_wrapper(*args, **kwargs): + import executors + import smart_future + # Look for as of yet unresolved arguments in _funct's # argument list and resolve them now. newargs = [] -- cgit v1.3