]> granicus.if.org Git - python/commitdiff
shit - just change the visible name, not the comments - strictly speaking,
authorSkip Montanaro <skip@pobox.com>
Mon, 11 Aug 2003 13:15:11 +0000 (13:15 +0000)
committerSkip Montanaro <skip@pobox.com>
Mon, 11 Aug 2003 13:15:11 +0000 (13:15 +0000)
the tp_name is not correct, but what's exposed to users is known visibly as
"StringIO", not "StringI" or "StringO".

Modules/cStringIO.c

index 7e8874b5e0c5bc019b66dd4519d21599563cb15d..ae2e97601a49627c5126d61cc7637e6e8d2d5b5d 100644 (file)
@@ -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 */