Skip to content

Commit

Permalink
macOS deploy: use the new plistlib API
Browse files Browse the repository at this point in the history
See https://docs.python.org/3/library/plistlib.html.
The new API was added in 3.4 and old removed in 3.9.
  • Loading branch information
jonasschnelli committed Nov 4, 2020
1 parent 88776c2 commit 04a69c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion contrib/macdeploy/macdeployqtplus
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 04a69c2

Please sign in to comment.