211cd5
From 8c2259d4ab03ef982738aaf863068a1015cadf3d Mon Sep 17 00:00:00 2001
211cd5
From: Ralph Bean <rbean@redhat.com>
211cd5
Date: Wed, 5 Nov 2014 10:23:44 -0500
211cd5
Subject: [PATCH] Remove nested bundling dep.
211cd5
211cd5
---
211cd5
 requests/compat.py | 6 +++++-
211cd5
 1 file changed, 5 insertions(+), 1 deletion(-)
211cd5
211cd5
diff --git a/requests/compat.py b/requests/compat.py
211cd5
index be5a1ed..70ea4e8 100644
211cd5
--- a/requests/compat.py
211cd5
+++ b/requests/compat.py
211cd5
@@ -91,7 +91,11 @@ if is_py2:
211cd5
     import cookielib
211cd5
     from Cookie import Morsel
211cd5
     from StringIO import StringIO
211cd5
-    from .packages.urllib3.packages.ordered_dict import OrderedDict
211cd5
+
211cd5
+    try:
211cd5
+        from collections import OrderedDict # py2.7
211cd5
+    except:
211cd5
+        from ordereddict import OrderedDict # py2.6 and lower (el6, etc.)
211cd5
 
211cd5
     builtin_str = str
211cd5
     bytes = str
211cd5
-- 
211cd5
1.9.3
211cd5