Kaydet (Commit) fdd4d0f5 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Merged revisions 79817 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79817 | senthil.kumaran | 2010-04-06 08:53:33 +0530 (Tue, 06 Apr 2010) | 2 lines

  Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once"
........
üst 43a94c31
...@@ -460,7 +460,7 @@ class Thread(_Verbose): ...@@ -460,7 +460,7 @@ class Thread(_Verbose):
raise RuntimeError("thread.__init__() not called") raise RuntimeError("thread.__init__() not called")
if self._started.is_set(): if self._started.is_set():
raise RuntimeError("thread already started") raise RuntimeError("threads can only be started once")
if __debug__: if __debug__:
self._note("%s.start(): starting thread", self) self._note("%s.start(): starting thread", self)
with _active_limbo_lock: with _active_limbo_lock:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment