diff options
author | Bill Janssen <janssen@parc.com> | 2008-09-08 16:45:19 (GMT) |
---|---|---|
committer | Bill Janssen <janssen@parc.com> | 2008-09-08 16:45:19 (GMT) |
commit | 58afe4c194b2934beda995840d3f5b3a0aafc3fa (patch) | |
tree | 8482f1bfb3f8ed9255aaa8af5e7dfe3d429b2ce7 /Lib/ssl.py | |
parent | f9ee5b4cffdcd79bc2edac84eaf9887cb2c303fc (diff) | |
download | cpython-58afe4c194b2934beda995840d3f5b3a0aafc3fa.zip cpython-58afe4c194b2934beda995840d3f5b3a0aafc3fa.tar.gz cpython-58afe4c194b2934beda995840d3f5b3a0aafc3fa.tar.bz2 |
fixes from issue 3162 for SSL module
Diffstat (limited to 'Lib/ssl.py')
-rw-r--r-- | Lib/ssl.py | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -284,6 +284,14 @@ class SSLSocket(socket): else: return socket.recvfrom(self, addr, buflen, flags) + def recvfrom_into(self, buffer, nbytes=None, flags=0): + self._checkClosed() + if self._sslobj: + raise ValueError("recvfrom_into not allowed on instances of %s" % + self.__class__) + else: + return socket.recvfrom_into(self, buffer, nbytes, flags) + def pending(self): self._checkClosed() if self._sslobj: |