mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
test: Use pathlib over os.path #28362
revert netutil chgs py3.8 compliant fixes based on PR review
This commit is contained in:
@@ -1006,5 +1006,5 @@ class BitcoinTestFramework(metaclass=BitcoinTestMetaClass):
|
||||
return self.config["components"].getboolean("USE_BDB")
|
||||
|
||||
def has_blockfile(self, node, filenum: str):
|
||||
blocksdir = os.path.join(node.datadir, self.chain, 'blocks', '')
|
||||
return os.path.isfile(os.path.join(blocksdir, f"blk{filenum}.dat"))
|
||||
blocksdir = node.datadir_path / self.chain / 'blocks'
|
||||
return (blocksdir / f"blk{filenum}.dat").is_file()
|
||||
|
||||
Reference in New Issue
Block a user