summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-08-25 00:49:05 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-08-25 00:49:05 (GMT)
commitb0d26335f2972731c4ebb5213bd942e2cfbcedbc (patch)
treee05d7e89509fac38cf9d90453658b7d7d405905d /Modules
parentf308132cc29eea9b7fe899deb575d29d607a48f4 (diff)
downloadcpython-b0d26335f2972731c4ebb5213bd942e2cfbcedbc.zip
cpython-b0d26335f2972731c4ebb5213bd942e2cfbcedbc.tar.gz
cpython-b0d26335f2972731c4ebb5213bd942e2cfbcedbc.tar.bz2
Use unicode strings
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_testcapimodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 7ed44e6..ca159e5 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -673,7 +673,7 @@ test_thread_state(PyObject *self, PyObject *args)
}
#endif
-/* Some tests of PyString_FromFormat(). This needs more tests. */
+/* Some tests of PyUnicode_FromFormat(). This needs more tests. */
static PyObject *
test_string_from_format(PyObject *self, PyObject *args)
{
@@ -681,10 +681,10 @@ test_string_from_format(PyObject *self, PyObject *args)
char *msg;
#define CHECK_1_FORMAT(FORMAT, TYPE) \
- result = PyString_FromFormat(FORMAT, (TYPE)1); \
+ result = PyUnicode_FromFormat(FORMAT, (TYPE)1); \
if (result == NULL) \
return NULL; \
- if (strcmp(PyString_AsString(result), "1")) { \
+ if (strcmp(PyUnicode_AsString(result), "1")) { \
msg = FORMAT " failed at 1"; \
goto Fail; \
} \