Use unicode
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 @@
return NULL;
}
- s = PyString_FromString(errstr);
+ s = PyUnicode_FromString(errstr);
if (s == NULL) {
Py_DECREF(v);
Py_DECREF(n);
@@ -335,13 +335,13 @@
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);
}