Debugger/DebugServer.py

changeset 406
eacf81fad150
parent 112
16893e193e9d
child 460
6a3899e91d76
--- a/Debugger/DebugServer.py	Sun Jul 25 17:08:39 2010 +0200
+++ b/Debugger/DebugServer.py	Mon Jul 26 15:45:23 2010 +0200
@@ -170,12 +170,12 @@
             if localhost:
                 return "127.0.0.1"
             else:
-                return "%s@@v4" % QHostInfo.localHostName()
+                return "{0}@@v4".format(QHostInfo.localHostName())
         elif self.networkInterface == "allv6":
             if localhost:
                 return "::1"
             else:
-                return "%s@@v6" % QHostInfo.localHostName()
+                return "{0}@@v6".format(QHostInfo.localHostName())
         else:
             return self.networkInterface
         
@@ -193,7 +193,7 @@
         self.__clientAssociations = {}
         
         for interface in DebuggerInterfaces:
-            modName = "Debugger.%s" % interface
+            modName = "Debugger.{0}".format(interface)
             mod = __import__(modName)
             components = modName.split('.')
             for comp in components[1:]:
@@ -438,9 +438,9 @@
             _cond = cond
         else:
             if special == self.watchSpecialCreated:
-                _cond = "%s ??created??" % cond
+                _cond = "{0} ??created??".format(cond)
             elif special == self.watchSpecialChanged:
-                _cond = "%s ??changed??" % cond
+                _cond = "{0} ??changed??".format(cond)
         return _cond
         
     def __splitWatchCondition(self, cond):

eric ide

mercurial