summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBill Janssen <janssen@parc.com>2008-06-29 00:05:51 (GMT)
committerBill Janssen <janssen@parc.com>2008-06-29 00:05:51 (GMT)
commit980f3149a2485d9d96cf715af88c8aa51ba63d7f (patch)
tree56db575c1ff1cd367a490a62558e7062e6e30c02 /Lib
parent4d45bfe4c561f06b0dacfcecd37d6c395d6da3a2 (diff)
downloadcpython-980f3149a2485d9d96cf715af88c8aa51ba63d7f.zip
cpython-980f3149a2485d9d96cf715af88c8aa51ba63d7f.tar.gz
cpython-980f3149a2485d9d96cf715af88c8aa51ba63d7f.tar.bz2
fix bad method names in ssl module (and typo in ssl doc)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ssl.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/ssl.py b/Lib/ssl.py
index 968f9a0..c072cd9 100644
--- a/Lib/ssl.py
+++ b/Lib/ssl.py
@@ -215,13 +215,13 @@ class SSLSocket(socket):
else:
return socket.send(self, data, flags)
- def send_to(self, data, addr, flags=0):
+ def sendto(self, data, addr, flags=0):
self._checkClosed()
if self._sslobj:
- raise ValueError("send_to not allowed on instances of %s" %
+ raise ValueError("sendto not allowed on instances of %s" %
self.__class__)
else:
- return socket.send_to(self, data, addr, flags)
+ return socket.sendto(self, data, addr, flags)
def sendall(self, data, flags=0):
self._checkClosed()
@@ -276,13 +276,13 @@ class SSLSocket(socket):
else:
return socket.recv_into(self, buffer, nbytes, flags)
- def recv_from(self, addr, buflen=1024, flags=0):
+ def recvfrom(self, addr, buflen=1024, flags=0):
self._checkClosed()
if self._sslobj:
- raise ValueError("recv_from not allowed on instances of %s" %
+ raise ValueError("recvfrom not allowed on instances of %s" %
self.__class__)
else:
- return socket.recv_from(self, addr, buflen, flags)
+ return socket.recvfrom(self, addr, buflen, flags)
def pending(self):
self._checkClosed()