Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10dfc1e

Browse files
committed
Fixed bytes naming in the docstrings of _bytesio.c.
1 parent bcd2c08 commit 10dfc1e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_bytesio.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ bytesio_flush(BytesIOObject *self)
167167
}
168168

169169
PyDoc_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

371371
PyDoc_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

519519
PyDoc_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

0 commit comments

Comments
 (0)