Debugger/CallTraceViewer.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3021
801289962f4e
child 3060
5883ce99ee12
diff -r 10516539f238 -r 0a02c433f52d Debugger/CallTraceViewer.py
--- a/Debugger/CallTraceViewer.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Debugger/CallTraceViewer.py	Fri Nov 01 15:48:48 2013 +0100
@@ -134,7 +134,8 @@
                     if ex:
                         fname += ex
                 if QFileInfo(fname).exists():
-                    res = E5MessageBox.yesNo(self,
+                    res = E5MessageBox.yesNo(
+                        self,
                         self.trUtf8("Save Call Trace Info"),
                         self.trUtf8("<p>The file <b>{0}</b> already exists."
                                     " Overwrite it?</p>").format(fname),
@@ -152,12 +153,14 @@
                             call = "->"
                         else:
                             call = "<-"
-                        f.write("{0} {1} || {2}\n".format(call,
+                        f.write("{0} {1} || {2}\n".format(
+                            call,
                             itm.text(1), itm.text(2)))
                         itm = self.callTrace.itemBelow(itm)
                     f.close()
                 except IOError as err:
-                    E5MessageBox.critical(self,
+                    E5MessageBox.critical(
+                        self,
                         self.trUtf8("Error saving Call Trace Info"),
                         self.trUtf8("""<p>The call trace info could not"""
                                     """ be written to <b>{0}</b></p>"""
@@ -229,9 +232,11 @@
             fromFile = self.__project.getRelativePath(fromFile)
             toFile = self.__project.getRelativePath(toFile)
         
-        itm = QTreeWidgetItem(parentItem, ["",
-            self.__entryFormat.format(fromFile, fromLine, fromFunction),
-            self.__entryFormat.format(toFile, toLine, toFunction)])
+        itm = QTreeWidgetItem(
+            parentItem,
+            ["",
+             self.__entryFormat.format(fromFile, fromLine, fromFunction),
+             self.__entryFormat.format(toFile, toLine, toFunction)])
         itm.setIcon(0, icon)
         itm.setData(0, Qt.UserRole, isCall)
         itm.setExpanded(True)

eric ide

mercurial