Commits

Alexandre Vassalotti committed 831a30c

Fixed bytes naming in the docstrings of _bytesio.c.

Comments (0)

Files changed (1)

Modules/_bytesio.c

 }
 
 PyDoc_STRVAR(getval_doc,
-"getvalue() -> string.\n"
+"getvalue() -> bytes.\n"
 "\n"
 "Retrieve the entire contents of the BytesIO object.");
 
 }
 
 PyDoc_STRVAR(readinto_doc,
-"readinto(bytes) -> int.  Read up to len(b) bytes into b.\n"
+"readinto(bytearray) -> int.  Read up to len(b) bytes into b.\n"
 "\n"
 "Returns number of bytes read (0 for EOF), or None if the object\n"
 "is set not to block as has no data to read.");
 }
 
 PyDoc_STRVAR(write_doc,
-"write(str) -> int.  Write string str to file.\n"
+"write(bytes) -> int.  Write bytes to file.\n"
 "\n"
 "Return the number of bytes written.");
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.