mirror of https://github.com/python/cpython
Issue #22127: fix typo.
This commit is contained in:
parent
18874a9e13
commit
17fd1e1013
|
@ -1263,7 +1263,7 @@ idna_converter(PyObject *obj, struct maybe_idna *data)
|
|||
return 0;
|
||||
}
|
||||
if (!PyBytes_Check(obj3)) {
|
||||
Py_DECREF(obj2);
|
||||
Py_DECREF(obj3);
|
||||
PyErr_SetString(PyExc_TypeError, "encoding of hostname failed to return bytes");
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue