Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(12)

Unified Diff: Lib/httplib.py

Issue 3255: Issue #3602 (Closed) SVN Base: http://svn.python.org/view/*checkout*/python/trunk/
Patch Set: Created 1 year, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: Lib/httplib.py
===================================================================
--- Lib/httplib.py (revision 65979)
+++ Lib/httplib.py (working copy)
@@ -67,12 +67,13 @@
"""
import socket
+from sys import py3kwarning
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)
+with warnings.catch_warnings():
+ if py3kwarning:
+ warnings.filterwarnings("ignore", ".*mimetools has been removed",
+ DeprecationWarning)
import mimetools
try:

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483