diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2011-08-23 12:26:44 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2011-08-23 12:26:44 (GMT) |
commit | 5fab03fd1565f4cd644ea2ab007876084dabfb8d (patch) | |
tree | 434c5cb7307fa960e1721a6b26be60af733d5315 /Lib/ssl.py | |
parent | 710d27e93a25637e9fad7913e79a8e3ead68a3e0 (diff) | |
download | cpython-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.py | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -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: |