Skip to content
Myr

monkey patchin' (will this suffice?)

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 d87bcce · Browse files · 1 file+12 added−2 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+12 added−2 removed

  • other:+12 added−2 removed

1 file+12 added−2 removed

modified:requests/core.py+12 added-2 removed
9 unmodified lines
10 :license: ISC, see LICENSE for more details.11"""1213import urllib14import urllib21516try:15 from eventlet.green import urllib217 from gevent import monkey 18 monkey.patch_all()19except ImportError:17 import urllib220 pass21 22try:23 import eventlet24 eventlet.monkey_patch()25except ImportError:26 pass272829from .packages.poster.encode import multipart_encode30from .packages.poster.streaminghttp import register_openers3132
406 unmodified lines