diff options
Diffstat (limited to 'lib-python/3/plistlib.py')
-rw-r--r-- | lib-python/3/plistlib.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-python/3/plistlib.py b/lib-python/3/plistlib.py index 21ebec3f00..33b79a133b 100644 --- a/lib-python/3/plistlib.py +++ b/lib-python/3/plistlib.py @@ -929,7 +929,7 @@ _FORMATS={ def load(fp, *, fmt=None, use_builtin_types=True, dict_type=dict): - """Read a .plist file. 'fp' should be (readable) file object. + """Read a .plist file. 'fp' should be a readable and binary file object. Return the unpacked root object (which usually is a dictionary). """ if fmt is None: @@ -960,8 +960,8 @@ def loads(value, *, fmt=None, use_builtin_types=True, dict_type=dict): def dump(value, fp, *, fmt=FMT_XML, sort_keys=True, skipkeys=False): - """Write 'value' to a .plist file. 'fp' should be a (writable) - file object. + """Write 'value' to a .plist file. 'fp' should be a writable, + binary file object. """ if fmt not in _FORMATS: raise ValueError("Unsupported format: %r"%(fmt,)) |