Skip to content
Myr

Gevent / Eventlet is back!

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 16e5119 · Browse files · 1 file+15 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+15 added−14 removed

  • other:+15 added−14 removed

1 file+15 added−14 removed

modified:requests/core.py+15 added-14 removed
10 unmodified lines
11"""1213import urllib14import urllib215#16#try:17# import eventlet18## eventlet.monkey_patch()19#except ImportError:20# pass21#22#if not 'eventlet' in locals():23# try:24# from gevent import monkey25# monkey.patch_all()26# except ImportError:27# pass28#151617try:18 import eventlet19 eventlet.monkey_patch()20except ImportError:21 pass2223if not 'eventlet' in locals():24 try:25 from gevent import monkey26 monkey.patch_all()27 except ImportError:28 pass293031from .packages.poster.encode import multipart_encode32from .packages.poster.streaminghttp import register_openers3334
418 unmodified lines