mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-08-23 13:32:24 +02:00
build: Require python 3.5
This commit is contained in:
@@ -31,9 +31,6 @@ from .util import (
|
||||
p2p_port,
|
||||
)
|
||||
|
||||
# For Python 3.4 compatibility
|
||||
JSONDecodeError = getattr(json, "JSONDecodeError", ValueError)
|
||||
|
||||
BITCOIND_PROC_WAIT_TIMEOUT = 60
|
||||
|
||||
|
||||
@@ -565,5 +562,5 @@ class TestNodeCLI():
|
||||
raise subprocess.CalledProcessError(returncode, self.binary, output=cli_stderr)
|
||||
try:
|
||||
return json.loads(cli_stdout, parse_float=decimal.Decimal)
|
||||
except JSONDecodeError:
|
||||
except json.JSONDecodeError:
|
||||
return cli_stdout.rstrip("\n")
|
||||
|
Reference in New Issue
Block a user