diff Objects/typeobject.c @ 43866:8ed0280c2ab6

Replace PyObject_Unicode with PyObject_Str everywhere, and remove the #define for PyObject_Unicode in object.h.
author Thomas Heller <theller@ctypes.org>
date Thu, 15 Nov 2007 20:48:54 +0000
parents 0d462d789b18
children 0889daf6d0d9
line wrap: on
line diff
--- a/Objects/typeobject.c	Thu Nov 15 20:03:00 2007 +0000
+++ b/Objects/typeobject.c	Thu Nov 15 20:48:54 2007 +0000
@@ -2954,7 +2954,7 @@
                 return NULL;
         }
 
-        self_as_str = PyObject_Unicode(self);
+        self_as_str = PyObject_Str(self);
         if (self_as_str != NULL) {
                 /* find the format function */
                 format_meth = PyObject_GetAttrString(self_as_str, "__format__");