From f70e89a163208076f12577cd98ce09650b9d1241 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 14 Feb 2011 11:45:50 -0500 Subject: [PATCH] eventlet support. --- requests/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/requests/core.py b/requests/core.py index e46718d..70e44d9 100644 --- a/requests/core.py +++ b/requests/core.py @@ -11,7 +11,10 @@ """ import urllib -import urllib2 +try: + from eventlet.green import urllib2 +except ImportError: + import urllib2 from .packages.poster.encode import multipart_encode from .packages.poster.streaminghttp import register_openers -- 2.7.4