summaryrefslogtreecommitdiffstats
path: root/Lib/ssl.py
diff options
context:
space:
mode:
authorBill Janssen <janssen@parc.com>2008-09-08 16:45:19 (GMT)
committerBill Janssen <janssen@parc.com>2008-09-08 16:45:19 (GMT)
commit58afe4c194b2934beda995840d3f5b3a0aafc3fa (patch)
tree8482f1bfb3f8ed9255aaa8af5e7dfe3d429b2ce7 /Lib/ssl.py
parentf9ee5b4cffdcd79bc2edac84eaf9887cb2c303fc (diff)
downloadcpython-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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index aa301295..cd54437 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: