Use unicode

This commit is contained in:
Neal Norwitz 2007-08-25 17:03:03 +00:00
parent 8ced961ae6
commit ae2c876e0e

View file

@ -167,7 +167,7 @@ PySSL_SetError(PySSLObject *obj, int ret)
return NULL; return NULL;
} }
s = PyString_FromString(errstr); s = PyUnicode_FromString(errstr);
if (s == NULL) { if (s == NULL) {
Py_DECREF(v); Py_DECREF(v);
Py_DECREF(n); Py_DECREF(n);
@ -335,13 +335,13 @@ PyDoc_STRVAR(ssl_doc,
static PyObject * static PyObject *
PySSL_server(PySSLObject *self) PySSL_server(PySSLObject *self)
{ {
return PyString_FromString(self->server); return PyUnicode_FromString(self->server);
} }
static PyObject * static PyObject *
PySSL_issuer(PySSLObject *self) PySSL_issuer(PySSLObject *self)
{ {
return PyString_FromString(self->issuer); return PyUnicode_FromString(self->issuer);
} }