Skip to content

Commit 04a69c2

Browse files
committed
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.
1 parent 88776c2 commit 04a69c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/macdeploy/macdeployqtplus

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,8 @@ if len(config.fancy) == 1:
586586
sys.exit(1)
587587

588588
try:
589-
fancy = plistlib.readPlist(p)
589+
with open(p, 'rb') as fp:
590+
fancy = plistlib.load(fp, fmt=plistlib.FMT_XML)
590591
except:
591592
if verbose >= 1:
592593
sys.stderr.write("Error: Could not parse fancy disk image plist at \"{}\"\n".format(p))

0 commit comments

Comments
 (0)