X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fsocket_util.py;fp=python%2Fovs%2Fsocket_util.py;h=8fecbc79c11e974d1755041ae9b07fe7880270e6;hb=24f974c481bc5230552b23d96312f645f7533cd3;hp=e6b6fcef9c2a486cffd240d9af04427f6cfbb693;hpb=d6cedfd9d29df4f9e9b7575c03ffcd2d84588c62;p=openvswitch diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py index e6b6fcef..8fecbc79 100644 --- a/python/ovs/socket_util.py +++ b/python/ovs/socket_util.py @@ -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