Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
a8c1f171
Commit
a8c1f171
authored
Nov 07, 2018
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue a DeprecationWarning when _ssl2.py gets imported.
In preperation for its removal. Fixes #1305.
parent
40827d83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/gevent/ssl.py
src/gevent/ssl.py
+11
-2
No files found.
src/gevent/ssl.py
View file @
a8c1f171
...
...
@@ -16,8 +16,17 @@ if PY2:
# We're just about to import ssl anyway so it's fine to import it here, just
# don't pollute the namespace
from
gevent
import
_sslgte279
as
_source
else
:
from
gevent
import
_ssl2
as
_source
# pragma: no cover
else
:
# pragma: no cover
from
gevent
import
_ssl2
as
_source
import
warnings
warnings
.
warn
(
"This version of Python has an insecure SSL implementation. "
"gevent is no longer tested with it, and support will be removed "
"in gevent 1.5. Please use Python 2.7.9 or newer."
,
DeprecationWarning
,
stacklevel
=
2
,
)
del
warnings
else
:
# Py3
from
gevent
import
_ssl3
as
_source
# pragma: no cover
...
...
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