]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Clarify that plistlib's load and dump functions take a binary file object (GH-9825)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 14 Jul 2019 09:23:38 +0000 (02:23 -0700)
committerGitHub <noreply@github.com>
Sun, 14 Jul 2019 09:23:38 +0000 (02:23 -0700)
commit5631e381a6fbc471896b5562d542be0a6befa797
treeceea44f460dd5c0b2a7dfa466a60a2a03c30d25d
parent13c89f3c876363c44d35ec5f8dc374aecbca62a1
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.htmlGH-plistlib.load
https://docs.python.org/3/library/plistlib.htmlGH-plistlib.dump
(cherry picked from commit 0d4f4352efecf1b044c88e234e71774fe04b7d6c)

Co-authored-by: Collin Styles <collingstyles@gmail.com>
Lib/plistlib.py