eric6/DebugClients/Python/ThreadExtension.py

branch
maintenance
changeset 7382
df744f939cca
parent 7362
028bf21bb5a2
parent 7364
bcf6b40e7790
child 7437
1148ca40ea36
--- a/eric6/DebugClients/Python/ThreadExtension.py	Wed Jan 01 12:02:35 2020 +0100
+++ b/eric6/DebugClients/Python/ThreadExtension.py	Sun Feb 02 11:27:46 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