Changed the use of the deprecated Thread.getName() to a direct access of the Thread.name property. eric7

Tue, 07 Nov 2023 16:52:08 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 07 Nov 2023 16:52:08 +0100
branch
eric7
changeset 10293
6c5585c3e543
parent 10292
0279595d3f59
child 10294
a055e1b82af8

Changed the use of the deprecated Thread.getName() to a direct access of the Thread.name property.

src/eric7/DebugClients/Python/ThreadExtension.py file | annotate | diff | comparison | revisions
--- a/src/eric7/DebugClients/Python/ThreadExtension.py	Tue Nov 07 15:59:19 2023 +0100
+++ b/src/eric7/DebugClients/Python/ThreadExtension.py	Tue Nov 07 16:52:08 2023 +0100
@@ -144,7 +144,7 @@
         threadList = []
         currentId = _thread.get_ident()
         # update thread names set by user (threading.setName)
-        threadNames = {t.ident: t.getName() for t in threading.enumerate()}
+        threadNames = {t.ident: t.name for t in threading.enumerate()}
 
         for threadId, thd in self.threads.items():
             d = {"id": threadId}

eric ide

mercurial