diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-27 04:00:45 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-10-27 04:00:45 (GMT) |
commit | bed678449f55a47fad914fa9e04df547c240f810 (patch) | |
tree | 143d515c8b240389ce2a2b541c604d6d3f8f79f9 /Doc/includes/noddy4.c | |
parent | 841e122f0ea1d73ca10a5ee91692d3a6c878af3c (diff) | |
download | cpython-bed678449f55a47fad914fa9e04df547c240f810.zip cpython-bed678449f55a47fad914fa9e04df547c240f810.tar.gz cpython-bed678449f55a47fad914fa9e04df547c240f810.tar.bz2 |
Get rid of more uses of string and use unicode
Diffstat (limited to 'Doc/includes/noddy4.c')
-rw-r--r-- | Doc/includes/noddy4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/includes/noddy4.c b/Doc/includes/noddy4.c index 878e086..ac0b1f4 100644 --- a/Doc/includes/noddy4.c +++ b/Doc/includes/noddy4.c @@ -57,14 +57,14 @@ Noddy_new(PyTypeObject *type, PyObject *args, PyObject *kwds) self = (Noddy *)type->tp_alloc(type, 0); if (self != NULL) { - self->first = PyString_FromString(""); + self->first = PyUnicode_FromString(""); if (self->first == NULL) { Py_DECREF(self); return NULL; } - self->last = PyString_FromString(""); + self->last = PyUnicode_FromString(""); if (self->last == NULL) { Py_DECREF(self); @@ -124,7 +124,7 @@ Noddy_name(Noddy* self) PyObject *args, *result; if (format == NULL) { - format = PyString_FromString("%s %s"); + format = PyUnicode_FromString("%s %s"); if (format == NULL) return NULL; } @@ -143,7 +143,7 @@ Noddy_name(Noddy* self) if (args == NULL) return NULL; - result = PyString_Format(format, args); + result = PyUnicode_Format(format, args); Py_DECREF(args); return result; |