diff options
| author | Scott Gasch <[email protected]> | 2021-07-08 22:25:12 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2021-07-08 22:25:12 -0700 |
| commit | 11eeb8574b7b4620ac6fd440cb251f8aa2458f5b (patch) | |
| tree | 97f8e64eddd4528b01af58df269427814b889929 /decorator_utils.py | |
| parent | e516059c716537259c601c022cc3bad44025385e (diff) | |
Reduce import scopes, remove cycles.
Diffstat (limited to 'decorator_utils.py')
| -rw-r--r-- | decorator_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decorator_utils.py b/decorator_utils.py index c07023b..375cbad 100644 --- a/decorator_utils.py +++ b/decorator_utils.py @@ -19,7 +19,6 @@ from typing import Callable, Optional import warnings import exceptions -import thread_utils logger = logging.getLogger(__name__) @@ -428,6 +427,7 @@ def timeout( parameter. The function is wrapped and returned to the caller. """ if use_signals is None: + import thread_utils use_signals = thread_utils.is_current_thread_main_thread() def decorate(function): |
