mirror of https://github.com/python/cpython
#17881: merge with 3.3.
This commit is contained in:
commit
f256f5f3eb
|
@ -47,8 +47,8 @@ This module defines the following functions:
|
||||||
|
|
||||||
.. function:: readPlist(pathOrFile)
|
.. function:: readPlist(pathOrFile)
|
||||||
|
|
||||||
Read a plist file. *pathOrFile* may either be a file name or a (readable)
|
Read a plist file. *pathOrFile* may either be a file name or a (readable and
|
||||||
file object. Return the unpacked root object (which usually is a
|
binary) file object. Return the unpacked root object (which usually is a
|
||||||
dictionary).
|
dictionary).
|
||||||
|
|
||||||
The XML data is parsed using the Expat parser from :mod:`xml.parsers.expat`
|
The XML data is parsed using the Expat parser from :mod:`xml.parsers.expat`
|
||||||
|
@ -59,7 +59,7 @@ This module defines the following functions:
|
||||||
.. function:: writePlist(rootObject, pathOrFile)
|
.. function:: writePlist(rootObject, pathOrFile)
|
||||||
|
|
||||||
Write *rootObject* to a plist file. *pathOrFile* may either be a file name
|
Write *rootObject* to a plist file. *pathOrFile* may either be a file name
|
||||||
or a (writable) file object.
|
or a (writable and binary) file object.
|
||||||
|
|
||||||
A :exc:`TypeError` will be raised if the object is of an unsupported type or
|
A :exc:`TypeError` will be raised if the object is of an unsupported type or
|
||||||
a container that contains objects of unsupported types.
|
a container that contains objects of unsupported types.
|
||||||
|
|
Loading…
Reference in New Issue