]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once"
authorSenthil Kumaran <orsenthil@gmail.com>
Tue, 6 Apr 2010 03:23:33 +0000 (03:23 +0000)
committerSenthil Kumaran <orsenthil@gmail.com>
Tue, 6 Apr 2010 03:23:33 +0000 (03:23 +0000)
Lib/threading.py

index c6fb2da07c0b1a1d6bd8c01d0e91959f32696205..06fdfc14c226b8a587159fc2aaa32d656c9b6de3 100644 (file)
@@ -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: