summaryrefslogtreecommitdiffstats
path: root/Lib/socket.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/socket.py')
-rw-r--r--Lib/socket.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/socket.py b/Lib/socket.py
index 4490fc4..45a122f 100644
--- a/Lib/socket.py
+++ b/Lib/socket.py
@@ -144,6 +144,10 @@ class _closedsocket(object):
send = recv = recv_into = sendto = recvfrom = recvfrom_into = _dummy
__getattr__ = _dummy
+# Wrapper around platform socket objects. This implements
+# a platform-independent dup() functionality. The
+# implementation currently relies on reference counting
+# to close the underlying socket object.
class _socketobject(object):
__doc__ = _realsocket.__doc__