mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Get rid of xreadlines() (methods).
This commit is contained in:
parent
7c3072437a
commit
7096760b25
11 changed files with 9 additions and 47 deletions
|
@ -1675,12 +1675,6 @@ PyDoc_STRVAR(readlines_doc,
|
|||
"The optional size argument, if given, is an approximate bound on the\n"
|
||||
"total number of bytes in the lines returned.");
|
||||
|
||||
PyDoc_STRVAR(xreadlines_doc,
|
||||
"xreadlines() -> returns self.\n"
|
||||
"\n"
|
||||
"For backward compatibility. File objects now include the performance\n"
|
||||
"optimizations previously implemented in the xreadlines module.");
|
||||
|
||||
PyDoc_STRVAR(writelines_doc,
|
||||
"writelines(sequence_of_strings) -> None. Write the strings to the file.\n"
|
||||
"\n"
|
||||
|
@ -1719,7 +1713,6 @@ static PyMethodDef file_methods[] = {
|
|||
{"tell", (PyCFunction)file_tell, METH_NOARGS, tell_doc},
|
||||
{"readinto", (PyCFunction)file_readinto, METH_VARARGS, readinto_doc},
|
||||
{"readlines", (PyCFunction)file_readlines,METH_VARARGS, readlines_doc},
|
||||
{"xreadlines",(PyCFunction)file_self, METH_NOARGS, xreadlines_doc},
|
||||
{"writelines",(PyCFunction)file_writelines, METH_O, writelines_doc},
|
||||
{"flush", (PyCFunction)file_flush, METH_NOARGS, flush_doc},
|
||||
{"close", (PyCFunction)file_close, METH_NOARGS, close_doc},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue