1
1
mirror of https://github.com/bitcoin/bitcoin.git synced 2024-05-17 23:56:39 +00:00

macOS deploy: use the new plistlib API

See https://docs.python.org/3/library/plistlib.html.
The new API was added in 3.4 and old removed in 3.9.

Github-Pull: 20298
Rebased-From: 04a69c200e0d18ae63c7e47898f85d1b4cb5c23d
This commit is contained in:
Jonas Schnelli 2020-11-04 09:59:36 +01:00 committed by fanquake
parent 314e79581f
commit 8ef0dace86
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -586,7 +586,8 @@ if len(config.fancy) == 1:
sys.exit(1)
try:
fancy = plistlib.readPlist(p)
with open(p, 'rb') as fp:
fancy = plistlib.load(fp, fmt=plistlib.FMT_XML)
except:
if verbose >= 1:
sys.stderr.write("Error: Could not parse fancy disk image plist at \"{}\"\n".format(p))