diff options
author | Cory Benfield <lukasaoz@gmail.com> | 2016-03-16 13:30:44 +0000 |
---|---|---|
committer | Cory Benfield <lukasaoz@gmail.com> | 2016-03-16 13:30:44 +0000 |
commit | 1c7559f8d304aeefb35c2836967375263c459e79 (patch) | |
tree | 6be816f9387f9314d0f4f417282bd2b00120a8dd | |
parent | 571fd737863fa0c60df24bce1fe4972719fd7ed2 (diff) | |
download | urllib3-1c7559f8d304aeefb35c2836967375263c459e79.tar.gz |
Append warning rules.
-rw-r--r-- | urllib3/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/urllib3/__init__.py b/urllib3/__init__.py index a5ad1332..92d2cb98 100644 --- a/urllib3/__init__.py +++ b/urllib3/__init__.py @@ -77,12 +77,12 @@ del NullHandler # SecurityWarning's always go off by default. warnings.simplefilter('always', exceptions.SecurityWarning, append=True) # SubjectAltNameWarning's should go off once per host -warnings.simplefilter('default', exceptions.SubjectAltNameWarning) +warnings.simplefilter('default', exceptions.SubjectAltNameWarning, append=True) # InsecurePlatformWarning's don't vary between requests, so we keep it default. warnings.simplefilter('default', exceptions.InsecurePlatformWarning, append=True) # SNIMissingWarnings should go off only once. -warnings.simplefilter('default', exceptions.SNIMissingWarning) +warnings.simplefilter('default', exceptions.SNIMissingWarning, append=True) def disable_warnings(category=exceptions.HTTPWarning): |