summaryrefslogtreecommitdiffstats
path: root/Modules/_bytesio.c
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2008-05-08 01:34:41 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2008-05-08 01:34:41 (GMT)
commit10dfc1ee31bfcbd6158c8d9a79a85c21d0f2561e (patch)
tree8148fd5a278333d1365e64b035a4233f80b79520 /Modules/_bytesio.c
parentbcd2c08e11e6739d975345ac832f1722f8752289 (diff)
downloadcpython-10dfc1ee31bfcbd6158c8d9a79a85c21d0f2561e.zip
cpython-10dfc1ee31bfcbd6158c8d9a79a85c21d0f2561e.tar.gz
cpython-10dfc1ee31bfcbd6158c8d9a79a85c21d0f2561e.tar.bz2
Fixed bytes naming in the docstrings of _bytesio.c.
Diffstat (limited to 'Modules/_bytesio.c')
-rw-r--r--Modules/_bytesio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_bytesio.c b/Modules/_bytesio.c
index 616bf05..2e649d6 100644
--- a/Modules/_bytesio.c
+++ b/Modules/_bytesio.c
@@ -167,7 +167,7 @@ bytesio_flush(BytesIOObject *self)
}
PyDoc_STRVAR(getval_doc,
-"getvalue() -> string.\n"
+"getvalue() -> bytes.\n"
"\n"
"Retrieve the entire contents of the BytesIO object.");
@@ -369,7 +369,7 @@ bytesio_readlines(BytesIOObject *self, PyObject *args)
}
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.");
@@ -517,7 +517,7 @@ bytesio_seek(BytesIOObject *self, PyObject *args)
}
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.");