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)