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
b45b83b1
Commit
b45b83b1
authored
Jan 07, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monkey: remove patch_httplib()
parent
f6abd4b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
gevent/monkey.py
gevent/monkey.py
+1
-7
No files found.
gevent/monkey.py
View file @
b45b83b1
...
...
@@ -193,12 +193,6 @@ def patch_select(aggressive=False):
select
.
__dict__
.
pop
(
'kevent'
,
None
)
def
patch_httplib
():
from
gevent.httplib
import
HTTPConnection
httplib
=
__import__
(
'httplib'
)
httplib
.
HTTPConnection
=
HTTPConnection
def
patch_all
(
socket
=
True
,
dns
=
True
,
time
=
True
,
select
=
True
,
thread
=
True
,
os
=
True
,
ssl
=
True
,
httplib
=
False
,
aggressive
=
True
):
"""Do all of the default monkey patching (calls every other function in this module."""
# order is important
...
...
@@ -220,7 +214,7 @@ def patch_all(socket=True, dns=True, time=True, select=True, thread=True, os=Tru
raise
# in Python 2.5, 'ssl' is a standalone package not included in stdlib
if
httplib
:
patch_httplib
(
)
raise
ValueError
(
'gevent.httplib is no longer provided, httplib must be False'
)
if
__name__
==
'__main__'
:
...
...
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