mirror of
https://github.com/python/cpython
synced 2024-09-05 16:38:56 +00:00
commit
7c8cd257e4
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue