mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
shit - just change the visible name, not the comments - strictly speaking,
the tp_name is not correct, but what's exposed to users is known visibly as "StringIO", not "StringI" or "StringO".
This commit is contained in:
parent
4a0d3d2e40
commit
e138828d03
1 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ typedef struct {
|
|||
|
||||
#define IOOOBJECT(O) ((IOobject*)(O))
|
||||
|
||||
/* Declarations for objects of type StringIO */
|
||||
/* Declarations for objects of type StringO */
|
||||
|
||||
typedef struct { /* Subtype of IOobject */
|
||||
PyObject_HEAD
|
||||
|
@ -540,7 +540,7 @@ newOobject(int size) {
|
|||
return (PyObject*)self;
|
||||
}
|
||||
|
||||
/* End of code for StringIO objects */
|
||||
/* End of code for StringO objects */
|
||||
/* -------------------------------------------------------- */
|
||||
|
||||
static PyObject *
|
||||
|
@ -605,7 +605,7 @@ PyDoc_STRVAR(Itype__doc__,
|
|||
static PyTypeObject Itype = {
|
||||
PyObject_HEAD_INIT(NULL)
|
||||
0, /*ob_size*/
|
||||
"cStringIO.StringI", /*tp_name*/
|
||||
"cStringIO.StringIO", /*tp_name*/
|
||||
sizeof(Iobject), /*tp_basicsize*/
|
||||
0, /*tp_itemsize*/
|
||||
/* methods */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue