mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
commit
7c8cd257e4
2 changed files with 2 additions and 2 deletions
|
@ -4663,8 +4663,6 @@ socket_ntohl(PyObject *self, PyObject *arg)
|
|||
return PyErr_Format(PyExc_TypeError,
|
||||
"expected int/long, %s found",
|
||||
Py_TYPE(arg)->tp_name);
|
||||
if (x == (unsigned long) -1 && PyErr_Occurred())
|
||||
return NULL;
|
||||
return PyLong_FromUnsignedLong(ntohl(x));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue