Skip to content

Commit

Permalink
Merge pull request #204 from garrettmoon/fixDeprecatedPlistWrite
Browse files Browse the repository at this point in the history
switch writePlist -> dump
  • Loading branch information
garrettmoon authored Apr 8, 2022
2 parents 2096f5c + 5440326 commit 5787125
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BazelExtensions/acknowledgement_merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
"StringsTable": "Acknowledgements",
"PreferenceSpecifiers": merged_fragments
}
plistlib.writePlist(out_plist, output)
with open(output, 'wb') as f:
plistlib.dump(out_plist, f, fmt=plistlib.FMT_XML)
elif action == "--merge":
plistlib.writePlist(merged_fragments, output)
with open(output, 'wb') as f:
plistlib.dump(merged_fragments, f, fmt=plistlib.FMT_XML)

0 comments on commit 5787125

Please sign in to comment.