DataViews/PyProfileDialog.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3021
801289962f4e
child 3145
a9de05d4a22f
--- a/DataViews/PyProfileDialog.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/DataViews/PyProfileDialog.py	Fri Nov 01 15:48:48 2013 +0100
@@ -85,10 +85,10 @@
             self.trUtf8('Exclude Python Library'),
             self.__filter)
         self.__menu.addSeparator()
-        self.__menu.addAction(self.trUtf8('Erase Profiling Info'),
-            self.__eraseProfile)
-        self.__menu.addAction(self.trUtf8('Erase Timing Info'),
-                              self.__eraseTiming)
+        self.__menu.addAction(
+            self.trUtf8('Erase Profiling Info'), self.__eraseProfile)
+        self.__menu.addAction(
+            self.trUtf8('Erase Timing Info'), self.__eraseTiming)
         self.__menu.addSeparator()
         self.__menu.addAction(self.trUtf8('Erase All Infos'), self.__eraseAll)
         self.resultList.setContextMenuPolicy(Qt.CustomContextMenu)
@@ -172,7 +172,7 @@
                 if self.cancelled:
                     return
                 
-                if not (self.ericpath and 
+                if not (self.ericpath and
                         func[0].startswith(self.ericpath)) and \
                    not func[0].startswith("DebugClients") and \
                    func[0] != "profile" and \
@@ -229,11 +229,12 @@
         
         fname = "{0}.profile".format(self.basename)
         if not os.path.exists(fname):
-            E5MessageBox.warning(self,
+            E5MessageBox.warning(
+                self,
                 self.trUtf8("Profile Results"),
                 self.trUtf8("""<p>There is no profiling data"""
                             """ available for <b>{0}</b>.</p>""")
-                    .format(pfn))
+                .format(pfn))
             self.close()
             return
         try:
@@ -241,11 +242,12 @@
             self.stats = pickle.load(f)
             f.close()
         except (EnvironmentError, pickle.PickleError, EOFError):
-            E5MessageBox.critical(self,
+            E5MessageBox.critical(
+                self,
                 self.trUtf8("Loading Profiling Data"),
                 self.trUtf8("""<p>The profiling data could not be"""
                             """ read from file <b>{0}</b>.</p>""")
-                    .format(fname))
+                .format(fname))
             self.close()
             return
         

eric ide

mercurial