Skip to content

Commit 217615a

Browse files
PatOnTheBackAnupKumarPanwar
authored andcommitted
Removed Unused Variables (TheAlgorithms#949)
- Removed two unused variables. - Changed `a` to `_` since the `a` variable is never used. This addresses [3 alerts from lgtm](https://lgtm.com/projects/g/TheAlgorithms/Python/snapshot/d55bbcd204dfbd436914a5f9031a6a8fdf22f6f4/files/sorts/Odd-Even_transposition_parallel.py?sort=name&dir=ASC&mode=heatmap).
1 parent 408c5de commit 217615a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sorts/Odd-Even_transposition_parallel.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,11 @@ def oeProcess(position, value, LSend, RSend, LRcv, RRcv, resultPipe):
7070
def OddEvenTransposition(arr):
7171

7272
processArray = []
73-
tempRrcv = None
74-
tempLrcv = None
7573

7674
resultPipe = []
7775

7876
#initialize the list of pipes where the values will be retrieved
79-
for a in arr:
77+
for _ in arr:
8078
resultPipe.append(Pipe())
8179

8280
#creates the processes

0 commit comments

Comments
 (0)