diff options
author | Jon Atack <jon@atack.com> | 2022-10-04 15:18:42 +0200 |
---|---|---|
committer | jonatack <jon@atack.com> | 2023-01-03 10:59:56 -0800 |
commit | 459cb637aca80f744a8399e84bc78fab60de0b5c (patch) | |
tree | bcf2240137aed6850656680f64b881ef1b8201f7 /contrib/seeds | |
parent | cb552c5f21192d2f8f69c07130928c21301a5e7f (diff) | |
download | bitcoin-459cb637aca80f744a8399e84bc78fab60de0b5c.tar.xz |
script, test: fix python linter E275 errors with flake8 5.0.4
Diffstat (limited to 'contrib/seeds')
-rwxr-xr-x | contrib/seeds/generate-seeds.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/seeds/generate-seeds.py b/contrib/seeds/generate-seeds.py index 44345e3987..a6f435af0d 100755 --- a/contrib/seeds/generate-seeds.py +++ b/contrib/seeds/generate-seeds.py @@ -70,13 +70,13 @@ def name_to_bip155(addr): if i == 0 or i == (len(addr)-1): # skip empty component at beginning or end continue x += 1 # :: skips to suffix - assert(x < 2) + assert x < 2 else: # two bytes per component val = int(comp, 16) sub[x].append(val >> 8) sub[x].append(val & 0xff) nullbytes = 16 - len(sub[0]) - len(sub[1]) - assert((x == 0 and nullbytes == 0) or (x == 1 and nullbytes > 0)) + assert (x == 0 and nullbytes == 0) or (x == 1 and nullbytes > 0) addr_bytes = bytes(sub[0] + ([0] * nullbytes) + sub[1]) if addr_bytes[0] == 0xfc: # Assume that seeds with fc00::/8 addresses belong to CJDNS, |