Browse Source

Issue #22127: fix typo.

pull/9921/head
Martin v. Löwis 12 years ago
parent
commit
17fd1e1013
  1. 2
      Modules/socketmodule.c

2
Modules/socketmodule.c

@ -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…
Cancel
Save