mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-05 09:57:01 +00:00
Removed Unused Variables (#949)
- Removed two unused variables.
- Changed `a` to `_` since the `a` variable is never used.
This addresses [3 alerts from lgtm](d55bbcd204/files/sorts/Odd-Even_transposition_parallel.py
).
This commit is contained in:
parent
408c5deb3a
commit
217615abf6
|
@ -70,13 +70,11 @@ arr = the list to be sorted
|
||||||
def OddEvenTransposition(arr):
|
def OddEvenTransposition(arr):
|
||||||
|
|
||||||
processArray = []
|
processArray = []
|
||||||
tempRrcv = None
|
|
||||||
tempLrcv = None
|
|
||||||
|
|
||||||
resultPipe = []
|
resultPipe = []
|
||||||
|
|
||||||
#initialize the list of pipes where the values will be retrieved
|
#initialize the list of pipes where the values will be retrieved
|
||||||
for a in arr:
|
for _ in arr:
|
||||||
resultPipe.append(Pipe())
|
resultPipe.append(Pipe())
|
||||||
|
|
||||||
#creates the processes
|
#creates the processes
|
||||||
|
|
Loading…
Reference in New Issue
Block a user