eric7/DebugClients/Python/coverage/collector.py

branch
eric7-maintenance
changeset 9111
4ac66b6c33a4
parent 8929
fcca2fa618bf
--- a/eric7/DebugClients/Python/coverage/collector.py	Mon May 02 15:53:05 2022 +0200
+++ b/eric7/DebugClients/Python/coverage/collector.py	Wed Jun 01 13:48:49 2022 +0200
@@ -145,6 +145,7 @@
             raise ConfigError(f"Conflicting concurrency settings: {show}")
         do_threading = False
 
+        tried = "nothing"  # to satisfy pylint
         try:
             if "greenlet" in concurrencies:
                 tried = "greenlet"
@@ -327,8 +328,7 @@
         self._collectors.append(self)
 
         # Replay all the events from fullcoverage into the new trace function.
-        for args in traces0:
-            (frame, event, arg), lineno = args
+        for (frame, event, arg), lineno in traces0:
             try:
                 fn(frame, event, arg, lineno=lineno)
             except TypeError as ex:

eric ide

mercurial