mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
This commit is contained in:
parent
2512a8b62e
commit
819c40ff35
4 changed files with 5 additions and 8 deletions
|
@ -24,11 +24,7 @@ TIMEOUT_MAX = 2**31
|
|||
# imports are done when needed on a function-by-function basis. Since threads
|
||||
# are disabled, the import lock should not be an issue anyway (??).
|
||||
|
||||
class error(Exception):
|
||||
"""Dummy implementation of _thread.error."""
|
||||
|
||||
def __init__(self, *args):
|
||||
self.args = args
|
||||
error = RuntimeError
|
||||
|
||||
def start_new_thread(function, args, kwargs={}):
|
||||
"""Dummy implementation of _thread.start_new_thread().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue