]> granicus.if.org Git - python/commitdiff
cleanup references to PyString_ APIs from 2.x in the 3.3 docs.
authorGregory P. Smith <greg@krypto.org>
Fri, 22 Mar 2013 20:49:26 +0000 (13:49 -0700)
committerGregory P. Smith <greg@krypto.org>
Fri, 22 Mar 2013 20:49:26 +0000 (13:49 -0700)
1  2 
Doc/extending/newtypes.rst
Doc/faq/extending.rst

index 08a70a2af609b1ca6cb72ec23699c32de0d2b5b7,3d68251dce709c85dfb552dba32e251737832c24..835a92e2423755beb779233543a1b0ece4b624d1
@@@ -288,17 -287,19 +288,17 @@@ strings, so we provide a new method:
  
         self = (Noddy *)type->tp_alloc(type, 0);
         if (self != NULL) {
-            self->first = PyString_FromString("");
+            self->first = PyUnicode_FromString("");
 -           if (self->first == NULL)
 -             {
 +           if (self->first == NULL) {
                 Py_DECREF(self);
                 return NULL;
 -             }
 +           }
  
-            self->last = PyString_FromString("");
+            self->last = PyUnicode_FromString("");
 -           if (self->last == NULL)
 -             {
 +           if (self->last == NULL) {
                 Py_DECREF(self);
                 return NULL;
 -             }
 +           }
  
             self->number = 0;
         }
Simple merge