]> granicus.if.org Git - python/commitdiff
#17881: clarify documentation of plistlib.
authorEzio Melotti <ezio.melotti@gmail.com>
Tue, 30 Apr 2013 13:34:04 +0000 (16:34 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Tue, 30 Apr 2013 13:34:04 +0000 (16:34 +0300)
Doc/library/plistlib.rst

index ae5e94d1a909051fd74b210c77c4f3a67a0088f7..a26736884818edf6cd3917a7ab072ee76d0795b0 100644 (file)
@@ -47,8 +47,8 @@ This module defines the following functions:
 
 .. function:: readPlist(pathOrFile)
 
-   Read a plist file. *pathOrFile* may either be a file name or a (readable)
-   file object.  Return the unpacked root object (which usually is a
+   Read a plist file. *pathOrFile* may either be a file name or a (readable and
+   binary) file object.  Return the unpacked root object (which usually is a
    dictionary).
 
    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)
 
     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 container that contains objects of unsupported types.