Mercurial > cpython-lru_cache-weakref
diff Modules/cStringIO.c @ 40799:04f5cbc74424
Kill off softspace completely (except in formatter.py which seems to have
a different feature with the same name).
The change to test_doctest.txt reduces the doctest failures to 3.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Fri, 09 Feb 2007 23:20:19 +0000 |
| parents | cc992d75d5b3 |
| children | 06145fbc7ab9 |
line wrap: on
line diff
--- a/Modules/cStringIO.c Fri Feb 09 22:43:47 2007 +0000 +++ b/Modules/cStringIO.c Fri Feb 09 23:20:19 2007 +0000 @@ -57,7 +57,6 @@ Py_ssize_t pos, string_size; Py_ssize_t buf_size; - int softspace; } Oobject; /* Declarations for objects of type StringI */ @@ -489,13 +488,6 @@ {NULL, NULL} /* sentinel */ }; -static PyMemberDef O_memberlist[] = { - {"softspace", T_INT, offsetof(Oobject, softspace), 0, - "flag indicating that a space needs to be printed; used by print"}, - /* getattr(f, "closed") is implemented without this table */ - {NULL} /* Sentinel */ -}; - static void O_dealloc(Oobject *self) { if (self->buf != NULL) @@ -536,7 +528,7 @@ PyObject_SelfIter, /*tp_iter */ (iternextfunc)IO_iternext, /*tp_iternext */ O_methods, /*tp_methods */ - O_memberlist, /*tp_members */ + 0, /*tp_members */ file_getsetlist, /*tp_getset */ }; @@ -549,7 +541,6 @@ return NULL; self->pos=0; self->string_size = 0; - self->softspace = 0; self->buf = (char *)malloc(size); if (!self->buf) {
