]> granicus.if.org Git - python/commit
Clarify that plistlib's load and dump functions take a binary file object (GH-9825)
authorCollin Styles <collingstyles@gmail.com>
Sun, 14 Jul 2019 09:01:48 +0000 (02:01 -0700)
committerRonald Oussoren <ronaldoussoren@mac.com>
Sun, 14 Jul 2019 09:01:48 +0000 (11:01 +0200)
commit0d4f4352efecf1b044c88e234e71774fe04b7d6c
treec6c0eabd42bf83ed63a0e91172682033ec0d2267
parent52c8c090870c4e45dc48d1991d7ef7de2e40b2a8
Clarify that plistlib's load and dump functions take a binary file object (GH-9825)

The documentation says that the fp parameter to plistlib.load "should be a
readable and binary file object" but the docstring only mentions that it
should be readable. Similarly, plistlib.dump's docstring only mentions
"writable". This commit clarifies that fp should also be binary.

https://docs.python.org/3/library/plistlib.html#plistlib.load
https://docs.python.org/3/library/plistlib.html#plistlib.dump
Lib/plistlib.py