Skip to content

Commit 7b49ec7

Browse files
authored
[3.13] pythongh-139748: Fix socket.if_nametoindex() Argument Clinic (python#139815)
pythongh-139748: Fix socket.if_nametoindex() Argument Clinic Fix a reference leak.
1 parent 8234841 commit 7b49ec7

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Modules/clinic/socketmodule.c.h

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/socketmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7098,15 +7098,15 @@ Returns a list of network interface information (index, name) tuples.");
70987098

70997099
/*[clinic input]
71007100
_socket.socket.if_nametoindex
7101-
oname: object(converter="PyUnicode_FSConverter")
7101+
oname: unicode_fs_encoded
71027102
/
71037103
71047104
Returns the interface index corresponding to the interface name if_name.
71057105
[clinic start generated code]*/
71067106

71077107
static PyObject *
71087108
_socket_socket_if_nametoindex_impl(PySocketSockObject *self, PyObject *oname)
7109-
/*[clinic end generated code: output=f7fc00511a309a8e input=662688054482cd46]*/
7109+
/*[clinic end generated code: output=f7fc00511a309a8e input=242c01253c533053]*/
71107110
{
71117111
#ifdef MS_WINDOWS
71127112
NET_IFINDEX index;

0 commit comments

Comments
 (0)