1
0

Fix "== None" linter fails

Credit to Zoltan Konder for pointing me to this issue.
This commit is contained in:
Jeremy Rand
2022-05-24 02:39:11 +00:00
parent cac4b6f92c
commit 1aa444e0f8
4 changed files with 4 additions and 4 deletions

View File

@@ -79,7 +79,7 @@ def numberToByteArray(n, howManyBytes=None):
not be larger. The returned bytearray will contain a big-endian
encoding of the input integer (n).
"""
if howManyBytes == None:
if howManyBytes is None:
howManyBytes = numBytes(n)
b = bytearray(howManyBytes)
for count in range(howManyBytes-1, -1, -1):