mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
This commit is contained in:
parent
e20973926a
commit
06515833fe
31 changed files with 62 additions and 62 deletions
|
@ -5989,7 +5989,7 @@ socket_getaddrinfo(PyObject *self, PyObject *args, PyObject* kwargs)
|
|||
PyOS_snprintf(pbuf, sizeof(pbuf), "%ld", value);
|
||||
pptr = pbuf;
|
||||
} else if (PyUnicode_Check(pobj)) {
|
||||
pptr = _PyUnicode_AsString(pobj);
|
||||
pptr = PyUnicode_AsUTF8(pobj);
|
||||
if (pptr == NULL)
|
||||
goto err;
|
||||
} else if (PyBytes_Check(pobj)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue