summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:29:44 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-03-17 08:29:44 (GMT)
commit7096760b2511df9b0e2ec846df9eb72c59e785fc (patch)
tree24a93465b1325a58b51e00eaf3924c5ec4bffd33 /Objects
parent7c3072437a8f2e4cd487e38d46ea99d0026bd4c2 (diff)
downloadcpython-7096760b2511df9b0e2ec846df9eb72c59e785fc.zip
cpython-7096760b2511df9b0e2ec846df9eb72c59e785fc.tar.gz
cpython-7096760b2511df9b0e2ec846df9eb72c59e785fc.tar.bz2
Get rid of xreadlines() (methods).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/fileobject.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 57a9e9d..f96ee7b 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -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},