Skip to content
Snippets Groups Projects
Commit 598470ee authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

this is no universal wheel

parent c7e846a9
No related branches found
No related tags found
No related merge requests found
......@@ -357,7 +357,8 @@ class TerminableThread(threading.Thread):
return False
def safe_wait_condition(self, condition: Condition, timeout: tp.Union[str, float],
wake_up_each: tp.Union[str, float] = 2) -> None:
wake_up_each: tp.Union[str, float] = 2,
dont_raise: bool = False) -> None:
"""
Wait for a condition, checking periodically if the thread is being terminated.
......@@ -367,6 +368,8 @@ class TerminableThread(threading.Thread):
:param timeout: maximum time to wait in seconds. Can be also a time string
:param wake_up_each: amount of seconds to wake up each to check for termination.
Can be also a time string.
:param dont_raise: if set to True, :class:`~satella.exceptions.WouldWaitMore` will not be
raised
:raises WouldWaitMore: timeout has passed and Condition has not happened
:raises SystemExit: thread is terminating
"""
......@@ -385,7 +388,8 @@ class TerminableThread(threading.Thread):
return
except WouldWaitMore:
pass
raise WouldWaitMore()
if not dont_raise:
raise WouldWaitMore()
def safe_sleep(self, interval: float, wake_up_each: float = 2) -> None:
"""
......
......@@ -53,4 +53,4 @@ max-line-length = 100
max-line-length = 100
[bdist_wheel]
universal = 1
universal = 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment