summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
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 /Modules/_testcapimodule.c
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 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index cb33e85..9b67b5e 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -615,12 +615,12 @@ test_long_numbits(PyObject *self)
return Py_None;
}
-/* Example passing NULLs to PyObject_Str(NULL) and PyObject_Unicode(NULL). */
+/* Example passing NULLs to PyObject_Str(NULL). */
static PyObject *
test_null_strings(PyObject *self)
{
- PyObject *o1 = PyObject_Str(NULL), *o2 = PyObject_Unicode(NULL);
+ PyObject *o1 = PyObject_Str(NULL), *o2 = PyObject_Str(NULL);
PyObject *tuple = PyTuple_Pack(2, o1, o2);
Py_XDECREF(o1);
Py_XDECREF(o2);