aboutsummaryrefslogtreecommitdiff
path: root/contrib/seeds
diff options
context:
space:
mode:
authorJon Atack <jon@atack.com>2022-10-04 15:18:42 +0200
committerjonatack <jon@atack.com>2023-01-03 10:59:56 -0800
commit459cb637aca80f744a8399e84bc78fab60de0b5c (patch)
treebcf2240137aed6850656680f64b881ef1b8201f7 /contrib/seeds
parentcb552c5f21192d2f8f69c07130928c21301a5e7f (diff)
downloadbitcoin-459cb637aca80f744a8399e84bc78fab60de0b5c.tar.xz
script, test: fix python linter E275 errors with flake8 5.0.4
Diffstat (limited to 'contrib/seeds')
-rwxr-xr-xcontrib/seeds/generate-seeds.py4
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,