summaryrefslogtreecommitdiff
path: root/urllib3/__init__.py
diff options
context:
space:
mode:
authorCory Benfield <lukasaoz@gmail.com>2016-03-16 13:31:34 +0000
committerCory Benfield <lukasaoz@gmail.com>2016-03-16 13:31:34 +0000
commit320b85202ba992e595c409a654d213d0b05f1122 (patch)
treeaa1e61044e5255adfbbba693634588bbe2e6dcde /urllib3/__init__.py
parent1c7559f8d304aeefb35c2836967375263c459e79 (diff)
downloadurllib3-320b85202ba992e595c409a654d213d0b05f1122.tar.gz
Add an explanatory comment re: append=True
Diffstat (limited to 'urllib3/__init__.py')
-rw-r--r--urllib3/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/urllib3/__init__.py b/urllib3/__init__.py
index 92d2cb98..49b9dc66 100644
--- a/urllib3/__init__.py
+++ b/urllib3/__init__.py
@@ -74,6 +74,9 @@ def add_stderr_logger(level=logging.DEBUG):
del NullHandler
+# All warning filters *must* be appended unless you're really certain that they
+# shouldn't be: otherwise, it's very hard for users to use most Python
+# mechanisms to silence them.
# SecurityWarning's always go off by default.
warnings.simplefilter('always', exceptions.SecurityWarning, append=True)
# SubjectAltNameWarning's should go off once per host