src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py

branch
eric7
changeset 9233
d14a2ec006a7
parent 9221
bf71ee032bb4
child 9279
e252f827aaa7
--- a/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Thu Jul 14 13:38:55 2022 +0200
+++ b/src/eric7/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleChecker.py	Thu Jul 14 15:40:26 2022 +0200
@@ -226,8 +226,8 @@
 
     # Submit tasks (initially two time number of processes
     initialTasks = 2 * NumberOfProcesses
-    for _ in range(initialTasks):
-        taskQueue.put(argumentsList.pop(0))
+    for task in argumentsList[:initialTasks]:
+        taskQueue.put(task)
 
     # Start worker processes
     workers = [
@@ -260,7 +260,7 @@
             break
 
         if i < endIndex:
-            taskQueue.put(argumentsList.pop(0))
+            taskQueue.put(argumentsList[i + initialTasks])
 
     # Tell child processes to stop
     for _ in range(NumberOfProcesses):

eric ide

mercurial