eric6/DebugClients/Python/MultiprocessingExtension.py

branch
multi_processing
changeset 7872
433dacbfa456
parent 7646
39e3db2b4936
child 7877
72386134c80a
diff -r eb65864ca038 -r 433dacbfa456 eric6/DebugClients/Python/MultiprocessingExtension.py
--- a/eric6/DebugClients/Python/MultiprocessingExtension.py	Thu Dec 10 20:16:21 2020 +0100
+++ b/eric6/DebugClients/Python/MultiprocessingExtension.py	Sat Dec 12 15:30:05 2020 +0100
@@ -76,52 +76,3 @@
         _originalProcess._bootstrap = ProcessWrapper._bootstrap
     else:
         module.Process = ProcessWrapper
-    
-##    if sys.version_info >= (3, 4):
-##        _originalProcess = module.Process
-####        _originalProcess = module.process.BaseProcess
-##    else:
-##        _originalProcess = module.Process
-##    class ProcessWrapper(_originalProcess):
-##        def __init__(self, *args, **kwargs):
-##            super(ProcessWrapper, self).__init__(*args, **kwargs)
-##            self._run = self.run
-##            self.run = self._bootstrap_eric6
-##            # Class attributes are not transfered to new process. Therefore make a
-##            # copy as instance attribute
-##            self._options = _debugClient.startOptions
-##        
-##        def _bootstrap_eric6(self):
-##            """
-##            Bootstrap for threading, which reports exceptions correctly.
-##            
-##            @param run the run method of threading.Thread
-##            @type method pointer
-##            """
-##            from DebugClient import DebugClient
-##            self.debugClient = DebugClient()
-##            
-##            (_wd, host, port, exceptions, tracePython, redirect,
-##             noencoding) = self._options[:7]
-##            
-##            args = sys.argv
-##            self.debugClient.name = self.name
-##            
-##            self.debugClient.startDebugger(args[0], host, port,
-##                                     exceptions=exceptions,
-##                                     tracePython=tracePython,
-##                                     redirect=redirect)
-##
-##            try:
-##                self._run()
-##            except Exception:
-##                excinfo = sys.exc_info()
-##                self.debugClient.user_exception(excinfo, True)
-##            finally:
-##                sys.settrace(None)
-##    
-##    if sys.version_info >= (3, 4):
-##        module.Process = ProcessWrapper
-####        module.process.BaseProcess = ProcessWrapper
-##    else:
-##        module.Process = ProcessWrapper

eric ide

mercurial