eric6/Debugger/DebugServer.py

branch
maintenance
changeset 7642
72721823d453
parent 7362
028bf21bb5a2
parent 7635
0cdead130a81
child 7737
5371a22cf2aa
diff -r f7cb83647621 -r 72721823d453 eric6/Debugger/DebugServer.py
--- a/eric6/Debugger/DebugServer.py	Sun May 31 17:26:46 2020 +0200
+++ b/eric6/Debugger/DebugServer.py	Sat Jul 04 11:45:34 2020 +0200
@@ -9,7 +9,6 @@
 
 
 import os
-import sys
 
 from PyQt5.QtCore import pyqtSignal, QModelIndex
 from PyQt5.QtNetwork import (
@@ -188,7 +187,7 @@
         
         self.networkInterface = Preferences.getDebugger("NetworkInterface")
         if self.networkInterface == "all":
-            hostAddress = QHostAddress("0.0.0.0")  # QHostAddress.Any)
+            hostAddress = QHostAddress("0.0.0.0")  # QHostAddress.Any)  # secok
         elif self.networkInterface == "allv6":
             hostAddress = QHostAddress("::")  # QHostAddress.AnyIPv6)
         else:
@@ -216,14 +215,6 @@
         self.clientType = Preferences.Prefs.settings.value('DebugClient/Type')
         if self.clientType is None:
             self.clientType = 'Python3'
-        # Change clientType if dependent interpreter does not exist anymore
-        # (maybe deinstalled,...)
-        elif self.clientType == 'Python2' and Preferences.getDebugger(
-                "Python2VirtualEnv") == '' and sys.version_info[0] >= 3:
-            self.clientType = 'Python3'
-        elif self.clientType == 'Python3' and Preferences.getDebugger(
-                "Python3VirtualEnv") == '' and sys.version_info[0] == 2:
-            self.clientType = 'Python2'
         
         self.lastClientType = ''
         self.__autoClearShell = False

eric ide

mercurial