More sanity with exception types and raises docs.
[pyutils.git] / src / pyutils / parallelize / thread_utils.py
index 4e891f1d8b813a7d3624b17907790c038f26527f..11c1c318d7ec8f8af8162bf6efe202d23bc3f0fe 100644 (file)
@@ -198,10 +198,11 @@ class ThreadWithReturnValue(threading.Thread, Runnable):
 
         A thread can be joined many times.
 
-        :meth:`join` raises a RuntimeError if an attempt is made to join the
-        current thread as that would cause a deadlock. It is also an
-        error to join a thread before it has been started and
-        attempts to do so raises the same exception.
+        Raises:
+            RuntimeError: an attempt is made to join the current thread
+                as that would cause a deadlock. It is also an error to join
+                a thread before it has been started and attempts to do so
+                raises the same exception.
         """
         threading.Thread.join(self, *args)
         return self._return