mirror of https://github.com/python/cpython
gh-111995: Add getnameinfo extension flag (#111994)
Add getnameinfo extension NI_IDN flag.
This commit is contained in:
parent
62802b6228
commit
fe9db901b2
|
@ -0,0 +1,2 @@
|
|||
Added the ``NI_IDN`` constant to the :mod:`socket` module when present in C
|
||||
at build time for use with :func:`socket.getnameinfo`.
|
|
@ -8803,6 +8803,9 @@ socket_exec(PyObject *m)
|
|||
#ifdef NI_DGRAM
|
||||
ADD_INT_MACRO(m, NI_DGRAM);
|
||||
#endif
|
||||
#ifdef NI_IDN
|
||||
ADD_INT_MACRO(m, NI_IDN);
|
||||
#endif
|
||||
|
||||
/* shutdown() parameters */
|
||||
#ifdef SHUT_RD
|
||||
|
|
Loading…
Reference in New Issue