mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 02:33:24 -03: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.
This commit is contained in:
parent
88776c2926
commit
04a69c200e
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue