File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -540,9 +540,9 @@ by file descriptors.
540540
541541.. function :: read(fd, n)
542542
543- Read at most *n * bytes from file descriptor *fd *. Return a string containing the
543+ Read at most *n * bytes from file descriptor *fd *. Return a bytestring containing the
544544 bytes read. If the end of the file referred to by *fd * has been reached, an
545- empty string is returned. Availability: Unix, Windows.
545+ empty bytes object is returned. Availability: Unix, Windows.
546546
547547 .. note ::
548548
@@ -574,8 +574,8 @@ by file descriptors.
574574
575575.. function :: write(fd, str)
576576
577- Write the string *str * to file descriptor *fd *. Return the number of bytes
578- actually written. Availability: Unix, Windows.
577+ Write the bytestring in *str * to file descriptor *fd *. Return the number of
578+ bytes actually written. Availability: Unix, Windows.
579579
580580 .. note ::
581581
You can’t perform that action at this time.
0 commit comments