[Python-checkins] r55625 - python/branches/cpy_merge/Modules/cStringIO.c

alexandre.vassalotti python-checkins at python.org
Mon May 28 23:19:40 CEST 2007


Author: alexandre.vassalotti
Date: Mon May 28 23:19:39 2007
New Revision: 55625

Modified:
   python/branches/cpy_merge/Modules/cStringIO.c
Log:
Removed cStringIO.reset()


Modified: python/branches/cpy_merge/Modules/cStringIO.c
==============================================================================
--- python/branches/cpy_merge/Modules/cStringIO.c	(original)
+++ python/branches/cpy_merge/Modules/cStringIO.c	Mon May 28 23:19:39 2007
@@ -262,22 +262,6 @@
 PyDoc_STRVAR(IO_readlines__doc__, "readlines() -- Read all lines");
 
 static PyObject *
-IO_reset(IOobject *self, PyObject *unused)
-{
-
-	if (!IO__opencheck(self))
-		return NULL;
-
-	self->pos = 0;
-
-	Py_INCREF(Py_None);
-	return Py_None;
-}
-
-PyDoc_STRVAR(IO_reset__doc__,
-"reset() -- Reset the file position to the beginning");
-
-static PyObject *
 IO_tell(IOobject *self, PyObject *unused)
 {
 
@@ -513,7 +497,6 @@
 	 IO_readline__doc__},
 	{"readlines", (PyCFunction) IO_readlines, METH_VARARGS,
 	 IO_readlines__doc__},
-	{"reset", (PyCFunction) IO_reset, METH_NOARGS, IO_reset__doc__},
 	{"tell", (PyCFunction) IO_tell, METH_NOARGS, IO_tell__doc__},
 	{"truncate", (PyCFunction) IO_truncate, METH_VARARGS,
 	 IO_truncate__doc__},
@@ -647,7 +630,6 @@
 	 IO_readline__doc__},
 	{"readlines", (PyCFunction) IO_readlines, METH_VARARGS,
 	 IO_readlines__doc__},
-	{"reset", (PyCFunction) IO_reset, METH_NOARGS, IO_reset__doc__},
 	{"tell", (PyCFunction) IO_tell, METH_NOARGS, IO_tell__doc__},
 	{"truncate", (PyCFunction) IO_truncate, METH_VARARGS,
 	 IO_truncate__doc__},


More information about the Python-checkins mailing list