File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ bytesio_flush(BytesIOObject *self)
167167}
168168
169169PyDoc_STRVAR (getval_doc ,
170- "getvalue() -> string .\n"
170+ "getvalue() -> bytes .\n"
171171"\n"
172172"Retrieve the entire contents of the BytesIO object." );
173173
@@ -369,7 +369,7 @@ bytesio_readlines(BytesIOObject *self, PyObject *args)
369369}
370370
371371PyDoc_STRVAR (readinto_doc ,
372- "readinto(bytes ) -> int. Read up to len(b) bytes into b.\n"
372+ "readinto(bytearray ) -> int. Read up to len(b) bytes into b.\n"
373373"\n"
374374"Returns number of bytes read (0 for EOF), or None if the object\n"
375375"is set not to block as has no data to read." );
@@ -517,7 +517,7 @@ bytesio_seek(BytesIOObject *self, PyObject *args)
517517}
518518
519519PyDoc_STRVAR (write_doc ,
520- "write(str ) -> int. Write string str to file.\n"
520+ "write(bytes ) -> int. Write bytes to file.\n"
521521"\n"
522522"Return the number of bytes written." );
523523
You can’t perform that action at this time.
0 commit comments