diff options
author | Zero-1729 <zero1729@protonmail.com> | 2021-08-16 19:30:44 +0100 |
---|---|---|
committer | Zero-1729 <zero1729@protonmail.com> | 2021-08-16 19:30:56 +0100 |
commit | 021daedfa100defad553d69cd3d628aaa5bc7caf (patch) | |
tree | aea7f9c78aa5e73073d26bfff3e2357986a8e056 /test/util | |
parent | f4328ebef52f51a5ee45cc42815c91ccd28b0669 (diff) |
refactor: replace remaining binascii method calls
Diffstat (limited to 'test/util')
-rwxr-xr-x | test/util/bitcoin-util-test.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/util/bitcoin-util-test.py b/test/util/bitcoin-util-test.py index 7b1cc2b031..aa8fd6eee5 100755 --- a/test/util/bitcoin-util-test.py +++ b/test/util/bitcoin-util-test.py @@ -10,7 +10,6 @@ Runs automatically during `make check`. Can also be run manually.""" import argparse -import binascii import configparser import difflib import json @@ -167,7 +166,7 @@ def parse_output(a, fmt): if fmt == 'json': # json: compare parsed data return json.loads(a) elif fmt == 'hex': # hex: parse and compare binary data - return binascii.a2b_hex(a.strip()) + return bytes.fromhex(a.strip()) else: raise NotImplementedError("Don't know how to compare %s" % fmt) |