Debugger/DebugServer.py

changeset 406
eacf81fad150
parent 112
16893e193e9d
child 460
6a3899e91d76
equal deleted inserted replaced
405:374066392929 406:eacf81fad150
168 """ 168 """
169 if self.networkInterface == "all": 169 if self.networkInterface == "all":
170 if localhost: 170 if localhost:
171 return "127.0.0.1" 171 return "127.0.0.1"
172 else: 172 else:
173 return "%s@@v4" % QHostInfo.localHostName() 173 return "{0}@@v4".format(QHostInfo.localHostName())
174 elif self.networkInterface == "allv6": 174 elif self.networkInterface == "allv6":
175 if localhost: 175 if localhost:
176 return "::1" 176 return "::1"
177 else: 177 else:
178 return "%s@@v6" % QHostInfo.localHostName() 178 return "{0}@@v6".format(QHostInfo.localHostName())
179 else: 179 else:
180 return self.networkInterface 180 return self.networkInterface
181 181
182 def preferencesChanged(self): 182 def preferencesChanged(self):
183 """ 183 """
191 """ 191 """
192 self.__clientCapabilities = {} 192 self.__clientCapabilities = {}
193 self.__clientAssociations = {} 193 self.__clientAssociations = {}
194 194
195 for interface in DebuggerInterfaces: 195 for interface in DebuggerInterfaces:
196 modName = "Debugger.%s" % interface 196 modName = "Debugger.{0}".format(interface)
197 mod = __import__(modName) 197 mod = __import__(modName)
198 components = modName.split('.') 198 components = modName.split('.')
199 for comp in components[1:]: 199 for comp in components[1:]:
200 mod = getattr(mod, comp) 200 mod = getattr(mod, comp)
201 201
436 """ 436 """
437 if special == "": 437 if special == "":
438 _cond = cond 438 _cond = cond
439 else: 439 else:
440 if special == self.watchSpecialCreated: 440 if special == self.watchSpecialCreated:
441 _cond = "%s ??created??" % cond 441 _cond = "{0} ??created??".format(cond)
442 elif special == self.watchSpecialChanged: 442 elif special == self.watchSpecialChanged:
443 _cond = "%s ??changed??" % cond 443 _cond = "{0} ??changed??".format(cond)
444 return _cond 444 return _cond
445 445
446 def __splitWatchCondition(self, cond): 446 def __splitWatchCondition(self, cond):
447 """ 447 """
448 Private method to split a remote watch expression. 448 Private method to split a remote watch expression.

eric ide

mercurial