summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-20 07:13:40 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-20 07:13:40 (GMT)
commita98c4a984b34f887076f4171b1e3303e164cbddf (patch)
tree78f6f0fbbc6728e24d5478aadb7bfe1d871b244f /Modules/socketmodule.c
parentf6f15918087f2fae652634303a79f9cc6bc421ce (diff)
parent06515833fef7b8b5c7968edf72367d94ff7eb1e0 (diff)
downloadcpython-a98c4a984b34f887076f4171b1e3303e164cbddf.zip
cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.gz
cpython-a98c4a984b34f887076f4171b1e3303e164cbddf.tar.bz2
Replaced outdated macros _PyUnicode_AsString and _PyUnicode_AsStringAndSize
with PyUnicode_AsUTF8 and PyUnicode_AsUTF8AndSize.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index d168e56..feaa212 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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)) {