Author d9pouces
Recipients d9pouces, jrjsmrtn, merwok, ned.deily, r.david.murray, ronaldoussoren, serhiy.storchaka
Date 2012-04-08.08:31:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1333873887.43.0.287550040792.issue14455@psf.upfronthosting.co.za>
In-reply-to
Content
Here is the new patch, allowing read and write binary, json and xml plist files.

It includes both the plistlib.py and test/test_plistlib.py patches.
JSON format does not allow dates and data, so XML is used by default to write files.
I use the json library to write JSON plist files, but its output is slightly different from the Apple default output: keys of dictionaries are in different order. Thus, I removed the test_appleformattingfromliteral test for JSON files.

Similarly, my binary writer does not write the same binary files as the Apple library: my library writes the content of compound objects (dicts, lists and sets) before the object itself, while Apple writes the object before its content. Copying the Apple behavior results in some additional weird lines of code, for little benefit. Thus, I also removed the  test_appleformattingfromliteral test for binary files.

Other tests are made for all the three formats.
History
Date User Action Args
2012-04-08 08:31:27d9poucessetrecipients: + d9pouces, ronaldoussoren, ned.deily, merwok, r.david.murray, jrjsmrtn, serhiy.storchaka
2012-04-08 08:31:27d9poucessetmessageid: <1333873887.43.0.287550040792.issue14455@psf.upfronthosting.co.za>
2012-04-08 08:31:26d9pouceslinkissue14455 messages
2012-04-08 08:31:26d9poucescreate