eric6/DebugClients/Python/ThreadExtension.py

changeset 7364
bcf6b40e7790
parent 7360
9190402e4505
child 7376
21df384d6150
child 7382
df744f939cca
child 7413
424f88fdee04
--- a/eric6/DebugClients/Python/ThreadExtension.py	Wed Jan 01 12:00:06 2020 +0100
+++ b/eric6/DebugClients/Python/ThreadExtension.py	Wed Jan 01 20:55:58 2020 +0100
@@ -358,6 +358,19 @@
             else:
                 module.Timer = TimerWrapper
         
+            # Special handling of threading._DummyThread
+            class DummyThreadWrapper(module._DummyThread, ThreadWrapper):
+                """
+                Wrapper class for threading._DummyThread.
+                """
+                def __init__(self, *args, **kwargs):
+                    """
+                    Constructor
+                    """
+                    super(DummyThreadWrapper, self).__init__(*args, **kwargs)
+            
+            module._DummyThread = DummyThreadWrapper
+        
         # Add hook for *.QThread
         elif (fullname in ['PyQt4.QtCore', 'PyQt5.QtCore',
                            'PySide.QtCore', 'PySide2.QtCore'] and

eric ide

mercurial