mirror of
https://github.com/openvswitch/ovs
synced 2025-09-04 00:05:15 +00:00
socket-util: Remove get_socket_error().
It has no remaining users. Signed-off-by: Ben Pfaff <blp@nicira.com> Acked-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
@@ -133,12 +133,6 @@ def inet_open_active(style, target, default_port, dscp):
|
||||
return get_exception_errno(e), None
|
||||
|
||||
|
||||
def get_socket_error(sock):
|
||||
"""Returns the errno value associated with 'socket' (0 if no error) and
|
||||
resets the socket's error status."""
|
||||
return sock.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR)
|
||||
|
||||
|
||||
def get_exception_errno(e):
|
||||
"""A lot of methods on Python socket objects raise socket.error, but that
|
||||
exception is documented as having two completely different forms of
|
||||
|
Reference in New Issue
Block a user