Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f256f5f

Browse files
committed
#17881: merge with 3.3.
2 parents 60342fe + ab6ab15 commit f256f5f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/library/plistlib.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ This module defines the following functions:
4747

4848
.. function:: readPlist(pathOrFile)
4949

50-
Read a plist file. *pathOrFile* may either be a file name or a (readable)
51-
file object. Return the unpacked root object (which usually is a
50+
Read a plist file. *pathOrFile* may either be a file name or a (readable and
51+
binary) file object. Return the unpacked root object (which usually is a
5252
dictionary).
5353

5454
The XML data is parsed using the Expat parser from :mod:`xml.parsers.expat`
@@ -59,7 +59,7 @@ This module defines the following functions:
5959
.. function:: writePlist(rootObject, pathOrFile)
6060

6161
Write *rootObject* to a plist file. *pathOrFile* may either be a file name
62-
or a (writable) file object.
62+
or a (writable and binary) file object.
6363

6464
A :exc:`TypeError` will be raised if the object is of an unsupported type or
6565
a container that contains objects of unsupported types.

0 commit comments

Comments
 (0)