summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/string_format.h
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-11-15 20:48:54 (GMT)
committerThomas Heller <theller@ctypes.org>2007-11-15 20:48:54 (GMT)
commit519a042c7c248e3ae23cf2a3c1152f91a5bd2791 (patch)
tree3eaef917fda4776da67d0426754f810e59d9f183 /Objects/stringlib/string_format.h
parent6e8ea0fd9c46978cf3101bd3ea94022751464ad9 (diff)
downloadcpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.zip
cpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.tar.gz
cpython-519a042c7c248e3ae23cf2a3c1152f91a5bd2791.tar.bz2
Replace PyObject_Unicode with PyObject_Str everywhere, and remove the
#define for PyObject_Unicode in object.h.
Diffstat (limited to 'Objects/stringlib/string_format.h')
-rw-r--r--Objects/stringlib/string_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringlib/string_format.h b/Objects/stringlib/string_format.h
index 6c3c1e6..b771149 100644
--- a/Objects/stringlib/string_format.h
+++ b/Objects/stringlib/string_format.h
@@ -770,7 +770,7 @@ do_conversion(PyObject *obj, STRINGLIB_CHAR conversion)
case 'r':
return PyObject_Repr(obj);
case 's':
- return PyObject_Unicode(obj);
+ return PyObject_Str(obj);
default:
PyErr_Format(PyExc_ValueError,
"Unknown converion specifier %c",