diff --git a/contrib/devtools/chainparams/generate_chainparams_constants.py b/contrib/devtools/chainparams/generate_chainparams_constants.py --- a/contrib/devtools/chainparams/generate_chainparams_constants.py +++ b/contrib/devtools/chainparams/generate_chainparams_constants.py @@ -36,7 +36,8 @@ def main(): if len(sys.argv) != 2: - print('Usage: {} '.format(sys.argv[0]), file=sys.stderr) + print('Usage: {} '.format( + sys.argv[0]), file=sys.stderr) sys.exit(1) indir = sys.argv[1] diff --git a/contrib/linearize/linearize-hashes.py b/contrib/linearize/linearize-hashes.py --- a/contrib/linearize/linearize-hashes.py +++ b/contrib/linearize/linearize-hashes.py @@ -76,8 +76,8 @@ height = settings['min_height'] while height < settings['max_height'] + 1: - num_blocks = min(settings['max_height'] + - 1 - height, max_blocks_per_call) + num_blocks = min(settings['max_height'] + + 1 - height, max_blocks_per_call) batch = [] for x in range(num_blocks): batch.append(rpc.build_request(x, 'getblockhash', [height + x])) @@ -146,7 +146,8 @@ if 'datadir' in settings and not use_userpass: use_datadir = True if not use_userpass and not use_datadir: - print("Missing datadir or username and/or password in cfg file", file=sys.stderr) + print("Missing datadir or username and/or password in cfg file", + file=sys.stderr) sys.exit(1) settings['port'] = int(settings['port']) diff --git a/test/functional/combine_logs.py b/test/functional/combine_logs.py --- a/test/functional/combine_logs.py +++ b/test/functional/combine_logs.py @@ -89,7 +89,8 @@ # Flush the final event yield LogEvent(timestamp=timestamp, source=source, event=event.rstrip()) except FileNotFoundError: - print("File {} could not be opened. Continuing without it.".format(logfile), file=sys.stderr) + print("File {} could not be opened. Continuing without it.".format( + logfile), file=sys.stderr) def print_logs(log_events, color=False, html=False): diff --git a/test/lint/check-rpc-mappings.py b/test/lint/check-rpc-mappings.py --- a/test/lint/check-rpc-mappings.py +++ b/test/lint/check-rpc-mappings.py @@ -134,7 +134,8 @@ errors += 1 continue if argname not in rargnames: - print('ERROR: {} argument {} is named {} in vRPCConvertParams but {} in dispatch table'.format(cmdname, argidx, argname, rargnames), file=sys.stderr) + print('ERROR: {} argument {} is named {} in vRPCConvertParams but {} in dispatch table'.format( + cmdname, argidx, argname, rargnames), file=sys.stderr) errors += 1 # Check for conflicts in vRPCConvertParams conversion