Issue #25030: Do not document seek() as if it accepts keyword arguments

Patch from Shiyao Ma.
This commit is contained in:
Martin Panter 2015-09-11 03:58:30 +00:00
parent 91c03e090a
commit db4220ea09
3 changed files with 9 additions and 7 deletions

View file

@ -530,7 +530,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"