Skip to content

Commit 444421d

Browse files
author
MarcoFalke
committed
test: [refactor] Fix E714 pycodestyle
1 parent f175a73 commit 444421d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/test_framework/blocktools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/usr/bin/env python3
2-
# Copyright (c) 2015-2022 The Bitcoin Core developers
2+
# Copyright (c) 2015-present The Bitcoin Core developers
33
# Distributed under the MIT software license, see the accompanying
44
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
55
"""Utilities for manipulating blocks and transactions."""
@@ -74,7 +74,7 @@ def create_block(hashprev=None, coinbase=None, ntime=None, *, version=None, tmpl
7474
block.nVersion = version or tmpl.get('version') or VERSIONBITS_LAST_OLD_BLOCK_VERSION
7575
block.nTime = ntime or tmpl.get('curtime') or int(time.time() + 600)
7676
block.hashPrevBlock = hashprev or int(tmpl['previousblockhash'], 0x10)
77-
if tmpl and not tmpl.get('bits') is None:
77+
if tmpl and tmpl.get('bits') is not None:
7878
block.nBits = struct.unpack('>I', bytes.fromhex(tmpl['bits']))[0]
7979
else:
8080
block.nBits = 0x207fffff # difficulty retargeting is disabled in REGTEST chainparams

0 commit comments

Comments
 (0)