projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
socket-util: Remove get_socket_error().
[openvswitch]
/
python
/
ovs
/
socket_util.py
diff --git
a/python/ovs/socket_util.py
b/python/ovs/socket_util.py
index e6b6fcef9c2a486cffd240d9af04427f6cfbb693..8fecbc79c11e974d1755041ae9b07fe7880270e6 100644
(file)
--- 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
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
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