Kaydet (Commit) 721b1457 authored tarafından Brett Cannon's avatar Brett Cannon

Silence DeprecationWarning raised by mimetools and rfc822 in cgi.

üst 0a4128ea
...@@ -38,9 +38,16 @@ from operator import attrgetter ...@@ -38,9 +38,16 @@ from operator import attrgetter
import sys import sys
import os import os
import urllib import urllib
import mimetools
import rfc822
import UserDict import UserDict
from test.test_support import catch_warning
from warnings import filterwarnings
with catch_warning(record=False):
filterwarnings("ignore", ".*mimetools has been removed",
DeprecationWarning)
import mimetools
filterwarnings("ignore", ".*rfc822 has been removed", DeprecationWarning)
import rfc822
try: try:
from cStringIO import StringIO from cStringIO import StringIO
except ImportError: except ImportError:
......
...@@ -49,7 +49,7 @@ Library ...@@ -49,7 +49,7 @@ Library
------- -------
- Silence the DeprecationWarning raised when importing mimetools in - Silence the DeprecationWarning raised when importing mimetools in
BaseHTTPServer, httplib. BaseHTTPServer, cgi (and rfc822), httplib.
- Issue #2776: fixed small issue when handling an URL with double slash - Issue #2776: fixed small issue when handling an URL with double slash
after a 302 response in the case of not going through a proxy. after a 302 response in the case of not going through a proxy.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment