summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin Panter <vadmium>2015-09-11 03:58:30 (GMT)
committerMartin Panter <vadmium>2015-09-11 03:58:30 (GMT)
commit6f80464f4ae64c3b4dd65c641ddc9c156a23e510 (patch)
treeae42ff83c3d7ccb7be3bd8b1bd81ecae51b05149 /Modules
parent397c2103f7c859c16b9e09aaab95424f23c9f526 (diff)
downloadcpython-6f80464f4ae64c3b4dd65c641ddc9c156a23e510.zip
cpython-6f80464f4ae64c3b4dd65c641ddc9c156a23e510.tar.gz
cpython-6f80464f4ae64c3b4dd65c641ddc9c156a23e510.tar.bz2
Issue #25030: Do not document seek() as if it accepts keyword arguments
Patch from Shiyao Ma.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_io/bytesio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c
index 6498320..f643e91 100644
--- a/Modules/_io/bytesio.c
+++ b/Modules/_io/bytesio.c
@@ -490,7 +490,7 @@ bytesio_iternext(bytesio *self)
}
PyDoc_STRVAR(seek_doc,
-"seek(pos, whence=0) -> int. Change stream position.\n"
+"seek(pos[, whence]) -> int. Change stream position.\n"
"\n"
"Seek to byte offset pos relative to position indicated by whence:\n"
" 0 Start of stream (the default). pos should be >= 0;\n"