[Python-checkins] r69828 - in python/branches/io-c/Modules: _iomodule.h _stringio.c io.c

antoine.pitrou python-checkins at python.org
Sat Feb 21 02:09:25 CET 2009


Author: antoine.pitrou
Date: Sat Feb 21 02:09:25 2009
New Revision: 69828

Log:
Plug a leak, and remove an unused string



Modified:
   python/branches/io-c/Modules/_iomodule.h
   python/branches/io-c/Modules/_stringio.c
   python/branches/io-c/Modules/io.c

Modified: python/branches/io-c/Modules/_iomodule.h
==============================================================================
--- python/branches/io-c/Modules/_iomodule.h	(original)
+++ python/branches/io-c/Modules/_iomodule.h	Sat Feb 21 02:09:25 2009
@@ -138,7 +138,6 @@
 extern PyObject *_PyIO_str_readable;
 extern PyObject *_PyIO_str_readinto;
 extern PyObject *_PyIO_str_readline;
-extern PyObject *_PyIO_str_replace;
 extern PyObject *_PyIO_str_reset;
 extern PyObject *_PyIO_str_seek;
 extern PyObject *_PyIO_str_seekable;

Modified: python/branches/io-c/Modules/_stringio.c
==============================================================================
--- python/branches/io-c/Modules/_stringio.c	(original)
+++ python/branches/io-c/Modules/_stringio.c	Sat Feb 21 02:09:25 2009
@@ -365,7 +365,6 @@
 static void
 stringio_dealloc(StringIOObject *self)
 {
-    self->writenl = NULL;
     Py_CLEAR(self->readnl);
     Py_CLEAR(self->writenl);
     Py_CLEAR(self->decoder);

Modified: python/branches/io-c/Modules/io.c
==============================================================================
--- python/branches/io-c/Modules/io.c	(original)
+++ python/branches/io-c/Modules/io.c	Sat Feb 21 02:09:25 2009
@@ -38,7 +38,6 @@
 PyObject *_PyIO_str_readable;
 PyObject *_PyIO_str_readinto;
 PyObject *_PyIO_str_readline;
-PyObject *_PyIO_str_replace;
 PyObject *_PyIO_str_reset;
 PyObject *_PyIO_str_seek;
 PyObject *_PyIO_str_seekable;
@@ -763,8 +762,6 @@
         goto fail;
     if (!(_PyIO_str_readline = PyUnicode_InternFromString("readline")))
         goto fail;
-    if (!(_PyIO_str_replace = PyUnicode_InternFromString("replace")))
-        goto fail;
     if (!(_PyIO_str_reset = PyUnicode_InternFromString("reset")))
         goto fail;
     if (!(_PyIO_str_seek = PyUnicode_InternFromString("seek")))


More information about the Python-checkins mailing list