mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once"
This commit is contained in:
parent
f9de534c21
commit
b02b311592
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ class Thread(_Verbose):
|
|||
if not self.__initialized:
|
||||
raise RuntimeError("thread.__init__() not called")
|
||||
if self.__started.is_set():
|
||||
raise RuntimeError("thread already started")
|
||||
raise RuntimeError("threads can only be started once")
|
||||
if __debug__:
|
||||
self._note("%s.start(): starting thread", self)
|
||||
with _active_limbo_lock:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue