Merge branch '21762-flaky-search-test'
[arvados.git] / sdk / python / arvados / events.py
index 917c876706ffb2bcab4189d5fca1da430b37a1fc..ce049ea0a5f32a9cce16621904947bf57bc6119a 100644 (file)
@@ -162,7 +162,7 @@ class EventClient(threading.Thread):
           disconnecting. Default 1000.
 
         * reason: str --- The WebSocket close reason sent to the server when
           disconnecting. Default 1000.
 
         * reason: str --- The WebSocket close reason sent to the server when
-          disconnecting. Default is the empty string.
+          disconnecting. Default is an empty string.
 
         * timeout: float --- How long to wait for the WebSocket server to
           acknowledge the disconnection, in seconds. Default 0, which means
 
         * timeout: float --- How long to wait for the WebSocket server to
           acknowledge the disconnection, in seconds. Default 0, which means
@@ -264,7 +264,7 @@ class EventClient(threading.Thread):
         This method runs in a separate thread to receive and process events
         from the server.
         """
         This method runs in a separate thread to receive and process events
         from the server.
         """
-        self.setName(f'ArvadosWebsockets-{self.ident}')
+        self.name = f'ArvadosWebsockets-{self.ident}'
         while self._client_ok and not self.is_closed.is_set():
             try:
                 with self._subscribe_lock:
         while self._client_ok and not self.is_closed.is_set():
             try:
                 with self._subscribe_lock: