mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 22:18:54 +01:00
script, test: fix python linter E275 errors with flake8 5.0.4
This commit is contained in:
@@ -31,7 +31,7 @@ def siphash_round(v0, v1, v2, v3):
|
||||
|
||||
|
||||
def siphash(k0, k1, data):
|
||||
assert(type(data) == bytes)
|
||||
assert type(data) == bytes
|
||||
v0 = 0x736f6d6570736575 ^ k0
|
||||
v1 = 0x646f72616e646f6d ^ k1
|
||||
v2 = 0x6c7967656e657261 ^ k0
|
||||
@@ -61,5 +61,5 @@ def siphash(k0, k1, data):
|
||||
|
||||
|
||||
def siphash256(k0, k1, num):
|
||||
assert(type(num) == int)
|
||||
assert type(num) == int
|
||||
return siphash(k0, k1, num.to_bytes(32, 'little'))
|
||||
|
||||
Reference in New Issue
Block a user