diff options
author | Bill Janssen <janssen@parc.com> | 2008-09-08 16:45:19 +0000 |
---|---|---|
committer | Bill Janssen <janssen@parc.com> | 2008-09-08 16:45:19 +0000 |
commit | 58afe4c194b2934beda995840d3f5b3a0aafc3fa (patch) | |
tree | 8482f1bfb3f8ed9255aaa8af5e7dfe3d429b2ce7 /Lib/ssl.py | |
parent | f9ee5b4cffdcd79bc2edac84eaf9887cb2c303fc (diff) | |
download | cpython-git-58afe4c194b2934beda995840d3f5b3a0aafc3fa.tar.gz |
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
diff --git a/Lib/ssl.py b/Lib/ssl.py index aa301295ae..cd54437a0c 100644 --- a/Lib/ssl.py +++ b/Lib/ssl.py @@ -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: |