diff options
Diffstat (limited to 'Lib/_dummy_thread.py')
| -rw-r--r-- | Lib/_dummy_thread.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Lib/_dummy_thread.py b/Lib/_dummy_thread.py index ed50520..f2465a9 100644 --- a/Lib/_dummy_thread.py +++ b/Lib/_dummy_thread.py @@ -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(). @@ -153,3 +149,6 @@ def interrupt_main(): else: global _interrupt _interrupt = True + +def info(): + return {'name': 'dummy'} |
