summaryrefslogtreecommitdiffstats
path: root/Lib/_dummy_thread.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-03-01 23:05:42 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-03-01 23:05:42 (GMT)
commit819c40ff35aeead0f78c71e18efdc634ffb7b187 (patch)
tree5536386865d20e18a25c768d86f34d5275dd7c3c /Lib/_dummy_thread.py
parent2512a8b62e32d0b7c51b484a32bb770bd4c2a903 (diff)
downloadcpython-819c40ff35aeead0f78c71e18efdc634ffb7b187.zip
cpython-819c40ff35aeead0f78c71e18efdc634ffb7b187.tar.gz
cpython-819c40ff35aeead0f78c71e18efdc634ffb7b187.tar.bz2
Followup to issue #11140 and r88682: also patch _dummy_thread.
Patch by Aymeric Augustin.
Diffstat (limited to 'Lib/_dummy_thread.py')
-rw-r--r--Lib/_dummy_thread.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/_dummy_thread.py b/Lib/_dummy_thread.py
index ed50520..13b1f26 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().