mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 08:50:41 +08:00
Fixes black failures from Previous PR (#1751)
* Fixes black failures from Previous PR * Fixes equality testing alert * Fixes call to main() alert * Fixes unused import
This commit is contained in:
@ -140,7 +140,7 @@ def emitterConverter(sizePar, data):
|
||||
# Mount the message
|
||||
ContBP = 0 # parity bit counter
|
||||
for x in range(0, sizePar + len(data)):
|
||||
if dataOrd[x] == None:
|
||||
if dataOrd[x] is None:
|
||||
dataOut.append(str(parity[ContBP]))
|
||||
ContBP += 1
|
||||
else:
|
||||
@ -243,7 +243,7 @@ def receptorConverter(sizePar, data):
|
||||
# Mount the message
|
||||
ContBP = 0 # Parity bit counter
|
||||
for x in range(0, sizePar + len(dataOutput)):
|
||||
if dataOrd[x] == None:
|
||||
if dataOrd[x] is None:
|
||||
dataOut.append(str(parity[ContBP]))
|
||||
ContBP += 1
|
||||
else:
|
||||
|
Reference in New Issue
Block a user