Add missed change from previous backport to wallet-dump.py

#8840: test: Explicitly set encoding to utf8 when opening text files
This commit is contained in:
Alexander Block 2018-01-31 10:37:15 +01:00
parent 9bb9e9ea72
commit a92b7b2ede

View File

@ -12,7 +12,7 @@ def read_dump(file_name, addrs, hd_master_addr_old):
Read the given dump, count the addrs that match, count change and reserve.
Also check that the old hd_master is inactive
"""
with open(file_name) as inputfile:
with open(file_name, encoding='utf8') as inputfile:
found_addr = 0
found_addr_chg = 0
found_addr_rsv = 0