]> granicus.if.org Git - python/commitdiff
Merged revisions 79819 via svnmerge from
authorSenthil Kumaran <orsenthil@gmail.com>
Tue, 6 Apr 2010 03:36:00 +0000 (03:36 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Tue, 6 Apr 2010 03:36:00 +0000 (03:36 +0000)
svn+ssh://pythondev@svn.python.org/python/branches/py3k

................
  r79819 | senthil.kumaran | 2010-04-06 09:00:18 +0530 (Tue, 06 Apr 2010) | 9 lines

  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"
  ........
................

Lib/threading.py

index c996f426cda154df86eefd8623f56712f63fd2fb..178c8fd33ca2030c7c77f541cbe341abaf9d5838 100644 (file)
@@ -450,7 +450,7 @@ class Thread(_Verbose):
             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: