summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorSenthil Kumaran <orsenthil@gmail.com>2010-04-06 03:23:33 (GMT)
committerSenthil Kumaran <orsenthil@gmail.com>2010-04-06 03:23:33 (GMT)
commitb02b311592fe1b8817d08626cc27b7d47165fcb7 (patch)
tree7d156deeadf0ebdc924de22a928098f5ad1cb7e2 /Lib
parentf9de534c218cfdab5b4114e6ed535c940ae6b8b5 (diff)
downloadcpython-b02b311592fe1b8817d08626cc27b7d47165fcb7.zip
cpython-b02b311592fe1b8817d08626cc27b7d47165fcb7.tar.gz
cpython-b02b311592fe1b8817d08626cc27b7d47165fcb7.tar.bz2
Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once"
Diffstat (limited to 'Lib')
-rw-r--r--Lib/threading.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index c6fb2da..06fdfc1 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -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: