Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 17fd1e1

Browse files
committed
Issue #22127: fix typo.
1 parent 18874a9 commit 17fd1e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/socketmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1263,7 +1263,7 @@ idna_converter(PyObject *obj, struct maybe_idna *data)
12631263
return 0;
12641264
}
12651265
if (!PyBytes_Check(obj3)) {
1266-
Py_DECREF(obj2);
1266+
Py_DECREF(obj3);
12671267
PyErr_SetString(PyExc_TypeError, "encoding of hostname failed to return bytes");
12681268
return 0;
12691269
}

0 commit comments

Comments
 (0)