py3 regression in thread API (TortoiseHgOverlayServer.py + util/thread2.py)
Traceback (most recent call last):
File "D:\temp\thg-branch-stable\TortoiseHgOverlayServer.py", line 217, in OnCommand
self.exit_application()
File "D:\temp\thg-branch-stable\TortoiseHgOverlayServer.py", line 223, in exit_application
if self.stop_pipe_server():
File "D:\temp\thg-branch-stable\TortoiseHgOverlayServer.py", line 229, in stop_pipe_server
if not self.pipethread.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'
isAlive -> is_alive (there are 2 other occurrences in TortoiseHgOverlayServer)
Traceback (most recent call last):
File "D:\temp\thg-branch-stable\TortoiseHgOverlayServer.py", line 242, in stop_pipe_server
self.pipethread.terminate()
File "D:\temp\thg-branch-stable\tortoisehg\util\thread2.py", line 42, in terminate
self.raise_exc(SystemExit)
File "D:\temp\thg-branch-stable\tortoisehg\util\thread2.py", line 37, in raise_exc
_async_raise(self._get_my_tid(), exctype)
File "D:\temp\thg-branch-stable\tortoisehg\util\thread2.py", line 30, in _get_my_tid
if not self.isAlive():
AttributeError: 'Thread' object has no attribute 'isAlive'
Fixing the error above there is another error at shutdown
Traceback (most recent call last):
File "D:\temp\thg-branch-stable\TortoiseHgOverlayServer.py", line 242, in stop_pipe_server
self.pipethread.terminate()
File "D:\temp\thg-branch-stable\tortoisehg\util\thread2.py", line 42, in terminate
self.raise_exc(SystemExit)
File "D:\temp\thg-branch-stable\tortoisehg\util\thread2.py", line 37, in raise_exc
_async_raise(self._get_my_tid(), exctype)
File "D:\temp\thg-branch-stable\tortoisehg\util\thread2.py", line 31, in _get_my_tid
raise threading.ThreadError("the thread is not active")
RuntimeError: the thread is not active