Somewhere along the way, the softspace attr of file objects became read-

only.  Repaired, and added new tests to test_file.py.
This commit is contained in:
Tim Peters 2003-05-04 04:16:52 +00:00
parent d72312857e
commit 015dd82136
3 changed files with 25 additions and 1 deletions

View file

@ -1962,7 +1962,8 @@ PyTypeObject PyFile_Type = {
0, /* tp_call */
0, /* tp_str */
PyObject_GenericGetAttr, /* tp_getattro */
0, /* tp_setattro */
/* softspace is writable: we must supply tp_setattro */
PyObject_GenericSetAttr, /* tp_setattro */
0, /* tp_as_buffer */
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
file_doc, /* tp_doc */