This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lanhel
Recipients lanhel
Date 2013-04-30.13:22:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367328142.85.0.378048877663.issue17881@psf.upfronthosting.co.za>
In-reply-to
Content
plistlib.writePlist documentation states """Write 'rootObject' to a .plist file. 'pathOrFile' may either be a file name or a (writable) file object.""", but if a text IO object is given for the pathOrFile object (e.g. ``io.TextIOBase`` or ``sys.stdout``) a ``TypeError`` with message "must be str, not bytes" is raised.

To clarify the documentation should be changed to be """...or a (writable, binary) file object.""".
History
Date User Action Args
2013-04-30 13:22:22lanhelsetrecipients: + lanhel
2013-04-30 13:22:22lanhelsetmessageid: <1367328142.85.0.378048877663.issue17881@psf.upfronthosting.co.za>
2013-04-30 13:22:22lanhellinkissue17881 messages
2013-04-30 13:22:22lanhelcreate