mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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:
parent
d72312857e
commit
015dd82136
3 changed files with 25 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue