diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-06 19:10:41 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-06 19:10:41 (GMT) |
commit | 5e028ae09e3181a1bebc402a9a414b8a79845090 (patch) | |
tree | 174f4aea9af25e3f583f41a1f07e8945f14da955 /Doc/library/chunk.rst | |
parent | 07fbd7847356c704ef30f9a4230a60281422dd39 (diff) | |
download | cpython-5e028ae09e3181a1bebc402a9a414b8a79845090.zip cpython-5e028ae09e3181a1bebc402a9a414b8a79845090.tar.gz cpython-5e028ae09e3181a1bebc402a9a414b8a79845090.tar.bz2 |
Fix empty strings to empty bytes objects.
Diffstat (limited to 'Doc/library/chunk.rst')
-rw-r--r-- | Doc/library/chunk.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/chunk.rst b/Doc/library/chunk.rst index ae0a221..50b6979 100644 --- a/Doc/library/chunk.rst +++ b/Doc/library/chunk.rst @@ -113,15 +113,15 @@ instance will fail with a :exc:`EOFError` exception. Read at most *size* bytes from the chunk (less if the read hits the end of the chunk before obtaining *size* bytes). If the *size* argument is - negative or omitted, read all data until the end of the chunk. The bytes - are returned as a string object. An empty string is returned when the end - of the chunk is encountered immediately. + negative or omitted, read all data until the end of the chunk. An empty + bytes object is returned when the end of the chunk is encountered + immediately. .. method:: skip() Skip to the end of the chunk. All further calls to :meth:`read` for the - chunk will return ``''``. If you are not interested in the contents of + chunk will return ``b''``. If you are not interested in the contents of the chunk, this method should be called so that the file points to the start of the next chunk. |