Issue #22127: fix typo.

This commit is contained in:
Martin v. Löwis 2014-08-05 16:13:50 +02:00
parent 18874a9e13
commit 17fd1e1013
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}