eric6/DebugClients/Python/PyProfile.py

changeset 7628
f904d0eef264
parent 7360
9190402e4505
child 7637
c878e8255972
diff -r 7f643d41464e -r f904d0eef264 eric6/DebugClients/Python/PyProfile.py
--- a/eric6/DebugClients/Python/PyProfile.py	Wed Jun 17 17:12:21 2020 +0200
+++ b/eric6/DebugClients/Python/PyProfile.py	Wed Jun 17 20:18:54 2020 +0200
@@ -10,7 +10,7 @@
 import marshal
 import profile
 import atexit
-import pickle
+import pickle       # secok
 import sys
 
 
@@ -54,10 +54,10 @@
         
         try:
             cache = open(self.timingCache, 'rb')
-            timings = marshal.load(cache)
+            timings = marshal.load(cache)       # secok
             if isinstance(timings, dict):
                 self.timings = timings
-        except Exception:
+        except Exception:       # secok
             pass
         finally:
             cache.close()
@@ -70,7 +70,7 @@
         try:
             cache = open(self.timingCache, 'wb')
             marshal.dump(self.timings, cache)
-        except Exception:
+        except Exception:       # secok
             pass
         finally:
             cache.close()
@@ -154,10 +154,11 @@
             rpt, rit, ret, rfn, rframe, rcur = self.cur
             if not isinstance(rframe, profile.Profile.fake_frame):
                 assert rframe.f_back is frame.f_back, ("Bad call", rfn,
+                # secok
                                                        rframe, rframe.f_back,
                                                        frame, frame.f_back)
                 self.trace_dispatch_return(rframe, 0)
-                assert (self.cur is None or
+                assert (self.cur is None or                            # secok
                         frame.f_back is self.cur[-2]), ("Bad call",
                                                         self.cur[-3])
         fcode = frame.f_code

eric ide

mercurial