eric7/DebugClients/Python/coverage/collector.py

branch
eric7
changeset 9099
0e511e0e94a3
parent 8929
fcca2fa618bf
--- a/eric7/DebugClients/Python/coverage/collector.py	Tue May 24 10:22:46 2022 +0200
+++ b/eric7/DebugClients/Python/coverage/collector.py	Tue May 24 11:00:52 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