DebugClients/Python/ThreadExtension.py

changeset 6196
7135a692e43e
parent 6195
186cbd6b15b1
child 6206
a02b03b7bfec
child 6645
ad476851d7e0
--- a/DebugClients/Python/ThreadExtension.py	Wed Mar 21 22:13:31 2018 +0100
+++ b/DebugClients/Python/ThreadExtension.py	Fri Mar 23 19:00:52 2018 +0100
@@ -321,10 +321,13 @@
                     sys.settrace(None)
             
             class ThreadWrapper(module.Thread):
-                """ Wrapper class for threading.Thread. """
-                
+                """
+                Wrapper class for threading.Thread.
+                """
                 def __init__(self, *args, **kwargs):
-                    """ Constructor. """
+                    """
+                    Constructor
+                    """
                     # Overwrite the provided run method with our own, to
                     # intercept the thread creation by threading.Thread
                     self.run = lambda s=self, run=self.run: _bootstrap(s, run)
@@ -340,10 +343,13 @@
                 timer = module.Timer
                 
             class TimerWrapper(timer, ThreadWrapper):
-                """ Wrapper class for threading.(_)Timer. """
-                
+                """
+                Wrapper class for threading.(_)Timer.
+                """
                 def __init__(self, interval, function, *args, **kwargs):
-                    """ Constructor. """
+                    """
+                    Constructor
+                    """
                     super(TimerWrapper, self).__init__(
                         interval, function, *args, **kwargs)
             
@@ -395,9 +401,13 @@
                     sys.settrace(None)
         
             class QThreadWrapper(module.QThread):
-                """ Wrapper class for *.QThread. """
-                
+                """
+                Wrapper class for *.QThread.
+                """
                 def __init__(self, *args, **kwargs):
+                    """
+                    Constructor
+                    """
                     # Overwrite the provided run method with our own, to
                     # intercept the thread creation by Qt
                     self.run = lambda s=self, run=self.run: (

eric ide

mercurial