Debugger/DebugViewer.py

changeset 406
eacf81fad150
parent 96
9624a110667d
child 464
a2b1d1770ef0
--- a/Debugger/DebugViewer.py	Sun Jul 25 17:08:39 2010 +0200
+++ b/Debugger/DebugViewer.py	Mon Jul 26 15:45:23 2010 +0200
@@ -331,7 +331,7 @@
         for s in stack:
             # just show base filename to make it readable
             s = (os.path.basename(s[0]), s[1], s[2])
-            self.stackComboBox.addItem('%s:%s:%s' % s)
+            self.stackComboBox.addItem('{0}:{1}:{2}'.format(*s))
         
     def setVariablesFilter(self, globalsFilter, localsFilter):
         """
@@ -411,7 +411,7 @@
             else:
                 state = self.trUtf8("running")
             itm = QTreeWidgetItem(self.__threadList, 
-                                  ["%d" % thread['id'], thread['name'], state])
+                                  ["{0:d}".format(thread['id']), thread['name'], state])
             if thread['id'] == currentID:
                 citm = itm
         

eric ide

mercurial