Merge pull request #4500 from jdufresne/remove-packages

Remove requests.packages for v3.0.0
diff --git a/requests/__init__.py b/requests/__init__.py
index fc6bd1f..bd9c8bb 100644
--- a/requests/__init__.py
+++ b/requests/__init__.py
@@ -110,7 +110,6 @@
 from .__version__ import __copyright__, __cake__
 
 from . import utils
-from . import packages
 from .models import Request, Response, PreparedRequest
 from .api import request, get, head, post, patch, put, delete, options
 from .sessions import session, Session
diff --git a/requests/packages.py b/requests/packages.py
deleted file mode 100644
index 7232fe0..0000000
--- a/requests/packages.py
+++ /dev/null
@@ -1,14 +0,0 @@
-import sys
-
-# This code exists for backwards compatibility reasons.
-# I don't like it either. Just look the other way. :)
-
-for package in ('urllib3', 'idna', 'chardet'):
-    locals()[package] = __import__(package)
-    # This traversal is apparently necessary such that the identities are
-    # preserved (requests.packages.urllib3.* is urllib3.*)
-    for mod in list(sys.modules):
-        if mod == package or mod.startswith(package + '.'):
-            sys.modules['requests.packages.' + mod] = sys.modules[mod]
-
-# Kinda cool, though, right?
diff --git a/tests/test_packages.py b/tests/test_packages.py
deleted file mode 100644
index b55cb68..0000000
--- a/tests/test_packages.py
+++ /dev/null
@@ -1,13 +0,0 @@
-import requests
-
-
-def test_can_access_urllib3_attribute():
-    requests.packages.urllib3
-
-
-def test_can_access_idna_attribute():
-    requests.packages.idna
-
-
-def test_can_access_chardet_attribute():
-    requests.packages.chardet
diff --git a/tests/test_requests.py b/tests/test_requests.py
index 14120a2..6d8a1d8 100644
--- a/tests/test_requests.py
+++ b/tests/test_requests.py
@@ -82,8 +82,6 @@
         requests.put
         requests.patch
         requests.post
-        # Not really an entry point, but people rely on it.
-        from requests.packages.urllib3.poolmanager import PoolManager
 
     @pytest.mark.parametrize(
         'exception, url', (