summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2011-08-23 12:26:44 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2011-08-23 12:26:44 (GMT)
commit5fab03fd1565f4cd644ea2ab007876084dabfb8d (patch)
tree434c5cb7307fa960e1721a6b26be60af733d5315 /Lib/ssl.py
parent710d27e93a25637e9fad7913e79a8e3ead68a3e0 (diff)
downloadcpython-5fab03fd1565f4cd644ea2ab007876084dabfb8d.zip
cpython-5fab03fd1565f4cd644ea2ab007876084dabfb8d.tar.gz
cpython-5fab03fd1565f4cd644ea2ab007876084dabfb8d.tar.bz2
Remove the SSLSocket versions of sendmsg/recvmsg due to lack of proper tests and documentation in conjunction with lack of any known use cases (see issue #6560 for details)
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r--Lib/ssl.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 1b7416e..914e749 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -355,14 +355,6 @@ class SSLSocket(socket):
else:
return socket.sendto(self, data, flags_or_addr, addr)
- def sendmsg(self, *args, **kwargs):
- self._checkClosed()
- if self._sslobj:
- raise ValueError("sendmsg not allowed on instances of %s" %
- self.__class__)
- else:
- return socket.sendmsg(self, *args, **kwargs)
-
def sendall(self, data, flags=0):
self._checkClosed()
if self._sslobj:
@@ -421,22 +413,6 @@ class SSLSocket(socket):
else:
return socket.recvfrom_into(self, buffer, nbytes, flags)
- def recvmsg(self, *args, **kwargs):
- self._checkClosed()
- if self._sslobj:
- raise ValueError("recvmsg not allowed on instances of %s" %
- self.__class__)
- else:
- return socket.recvmsg(self, *args, **kwargs)
-
- def recvmsg_into(self, *args, **kwargs):
- self._checkClosed()
- if self._sslobj:
- raise ValueError("recvmsg_into not allowed on instances of %s" %
- self.__class__)
- else:
- return socket.recvmsg_into(self, *args, **kwargs)
-
def pending(self):
self._checkClosed()
if self._sslobj: