diff options
author | Raymond Hettinger <python@rcn.com> | 2015-11-02 00:04:46 -0500 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-11-02 00:04:46 -0500 |
commit | 0bdf9ea136c4acca2de0fe6ab799ab35d5b09fd2 (patch) | |
tree | 4b47f7e8db6a919ad9e1dd8da0f21144754e7ffa /Lib/pickle.py | |
parent | 67b97b8f8dc792aa7e1130a52a0ccc5069c400ed (diff) | |
parent | e56a9191000d2ff15d7550b9c852fa6dee9b8f50 (diff) | |
download | cpython-git-0bdf9ea136c4acca2de0fe6ab799ab35d5b09fd2.tar.gz |
merge
Diffstat (limited to 'Lib/pickle.py')
-rw-r--r-- | Lib/pickle.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pickle.py b/Lib/pickle.py index d41753d2d2..6c6602f9a6 100644 --- a/Lib/pickle.py +++ b/Lib/pickle.py @@ -359,7 +359,7 @@ class _Pickler: The *file* argument must have a write() method that accepts a single bytes argument. It can thus be a file object opened for - binary writing, a io.BytesIO instance, or any other custom + binary writing, an io.BytesIO instance, or any other custom object that meets this interface. If *fix_imports* is True and *protocol* is less than 3, pickle @@ -991,7 +991,7 @@ class _Unpickler: The argument *file* must have two methods, a read() method that takes an integer argument, and a readline() method that requires no arguments. Both methods should return bytes. Thus *file* - can be a binary file object opened for reading, a io.BytesIO + can be a binary file object opened for reading, an io.BytesIO object, or any other custom object that meets this interface. The file-like object must have two methods, a read() method |