mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
This commit is contained in:
commit
a98c4a984b
31 changed files with 62 additions and 62 deletions
|
@ -6017,7 +6017,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