Skip to content

Commit b45b83b

Browse files
committed
monkey: remove patch_httplib()
1 parent f6abd4b commit b45b83b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

gevent/monkey.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,12 +193,6 @@ def patch_select(aggressive=False):
193193
select.__dict__.pop('kevent', None)
194194

195195

196-
def patch_httplib():
197-
from gevent.httplib import HTTPConnection
198-
httplib = __import__('httplib')
199-
httplib.HTTPConnection = HTTPConnection
200-
201-
202196
def patch_all(socket=True, dns=True, time=True, select=True, thread=True, os=True, ssl=True, httplib=False, aggressive=True):
203197
"""Do all of the default monkey patching (calls every other function in this module."""
204198
# order is important
@@ -220,7 +214,7 @@ def patch_all(socket=True, dns=True, time=True, select=True, thread=True, os=Tru
220214
raise
221215
# in Python 2.5, 'ssl' is a standalone package not included in stdlib
222216
if httplib:
223-
patch_httplib()
217+
raise ValueError('gevent.httplib is no longer provided, httplib must be False')
224218

225219

226220
if __name__ == '__main__':

0 commit comments

Comments
 (0)