Silence the DeprecationWarning raised in httplib when mimetools is imported.
diff --git a/Lib/httplib.py b/Lib/httplib.py
index 81020b7..62cd0c7 100644
--- a/Lib/httplib.py
+++ b/Lib/httplib.py
@@ -66,10 +66,14 @@
Req-sent-unread-response _CS_REQ_SENT <response_class>
"""
-import mimetools
import socket
from urlparse import urlsplit
import warnings
+from test.test_support import catch_warning
+with catch_warning(record=False):
+ warnings.filterwarnings("ignore", ".*mimetools has been removed",
+ DeprecationWarning)
+ import mimetools
try:
from cStringIO import StringIO