From 5440326cd19a31f61237d7c6802a428352775d14 Mon Sep 17 00:00:00 2001 From: Garrett Moon Date: Thu, 7 Apr 2022 16:29:23 -0700 Subject: [PATCH] switch writePlist -> dump --- BazelExtensions/acknowledgement_merger.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BazelExtensions/acknowledgement_merger.py b/BazelExtensions/acknowledgement_merger.py index 281d212..b3c63a7 100755 --- a/BazelExtensions/acknowledgement_merger.py +++ b/BazelExtensions/acknowledgement_merger.py @@ -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)