Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
980f3149
Commit
980f3149
authored
Jun 29, 2008
by
Bill Janssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bad method names in ssl module (and typo in ssl doc)
parent
4d45bfe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
Doc/library/ssl.rst
Doc/library/ssl.rst
+1
-1
Lib/ssl.py
Lib/ssl.py
+6
-6
No files found.
Doc/library/ssl.rst
View file @
980f3149
...
...
@@ -129,7 +129,7 @@ Functions, Constants, and Exceptions
method should signal unexpected EOF from the other end of the connection. If specified
as :const:`True` (the default), it returns a normal EOF in response to unexpected
EOF errors raised from the underlying socket; if :const:`False`, it will raise
the exceptions back the caller.
the exceptions back t
o t
he caller.
.. function:: RAND_status()
...
...
Lib/ssl.py
View file @
980f3149
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment