summaryrefslogtreecommitdiff
path: root/decorator_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'decorator_utils.py')
-rw-r--r--decorator_utils.py2
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):