mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Use unicode
This commit is contained in:
parent
8ced961ae6
commit
ae2c876e0e
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue