mirror of
https://github.com/basicswap/basicswap.git
synced 2025-11-06 02:38:11 +01:00
Silence python deprecation warning.
This commit is contained in:
@@ -1468,7 +1468,11 @@ def prepareDataDir(coin, settings, chain, particl_mnemonic, extra_opts={}):
|
|||||||
check_btc_fastsync_data(base_dir, BITCOIN_FASTSYNC_FILE)
|
check_btc_fastsync_data(base_dir, BITCOIN_FASTSYNC_FILE)
|
||||||
|
|
||||||
with tarfile.open(sync_file_path) as ft:
|
with tarfile.open(sync_file_path) as ft:
|
||||||
ft.extractall(path=data_dir)
|
if hasattr(tarfile, "data_filter"):
|
||||||
|
ft.extractall(path=data_dir, filter="data")
|
||||||
|
else:
|
||||||
|
# TODO: Remove when minimum python version is >= 3.12
|
||||||
|
ft.extractall(path=data_dir)
|
||||||
|
|
||||||
|
|
||||||
def write_torrc(data_dir, tor_control_password):
|
def write_torrc(data_dir, tor_control_password):
|
||||||
|
|||||||
Reference in New Issue
Block a user