diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 17:03:03 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2007-08-25 17:03:03 (GMT) |
commit | ae2c876e0e3912b8562179de9e14f6cad98624bb (patch) | |
tree | 24edd78e6a92f3aeaca3e07085e6ea31716d67d0 /Modules/_ssl.c | |
parent | 8ced961ae699dbaf055971b2e04f014b6fc5bfd2 (diff) | |
download | cpython-ae2c876e0e3912b8562179de9e14f6cad98624bb.zip cpython-ae2c876e0e3912b8562179de9e14f6cad98624bb.tar.gz cpython-ae2c876e0e3912b8562179de9e14f6cad98624bb.tar.bz2 |
Use unicode
Diffstat (limited to 'Modules/_ssl.c')
-rw-r--r-- | Modules/_ssl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c index 06aa0be..df7d094 100644 --- a/Modules/_ssl.c +++ b/Modules/_ssl.c @@ -167,7 +167,7 @@ PySSL_SetError(PySSLObject *obj, int ret) return NULL; } - s = PyString_FromString(errstr); + s = PyUnicode_FromString(errstr); if (s == NULL) { Py_DECREF(v); Py_DECREF(n); @@ -335,13 +335,13 @@ PyDoc_STRVAR(ssl_doc, static PyObject * PySSL_server(PySSLObject *self) { - return PyString_FromString(self->server); + return PyUnicode_FromString(self->server); } static PyObject * PySSL_issuer(PySSLObject *self) { - return PyString_FromString(self->issuer); + return PyUnicode_FromString(self->issuer); } |