Commit 7c8cd257 authored by Christian Heimes's avatar Christian Heimes

Issue #18549: Eliminate dead code in socket_ntohl().

CID 982369
parents 99f969e7 9228837e
......@@ -166,6 +166,8 @@ Core and Builtins
Library
-------
- Issue #18549: Eliminate dead code in socket_ntohl()
- Issue #18530: Remove additional stat call from posixpath.ismount.
Patch by Alex Gaynor.
......
......@@ -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));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment