From fab5a1e0f492f920270c661954802749dfac5fa1 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Wed, 20 Feb 2019 18:13:43 -0500 Subject: build: Require python 3.5 --- test/functional/test_framework/test_node.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'test/functional/test_framework/test_node.py') diff --git a/test/functional/test_framework/test_node.py b/test/functional/test_framework/test_node.py index 37fd2a8744..9d8560c4d8 100755 --- a/test/functional/test_framework/test_node.py +++ b/test/functional/test_framework/test_node.py @@ -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") -- cgit v1.2.3