Browse Source

Fix typos

Change-Id: Ibb5c6d9fe05f5df4424a05aaabf492dfd573f556
tags/1.1.1^0
Monty Taylor 3 years ago
parent
commit
d9eb7114dc
2 changed files with 3 additions and 2 deletions
  1. 2
    2
      requestsexceptions/__init__.py
  2. 1
    0
      test-requirements.txt

+ 2
- 2
requestsexceptions/__init__.py View File

@@ -31,7 +31,7 @@ except ImportError:
31 31
         InsecureRequestWarning = None
32 32
 
33 33
 try:
34
-        from requests.packages.urllib3.exceptions import SubjectAltNameWarning
34
+    from requests.packages.urllib3.exceptions import SubjectAltNameWarning
35 35
 except ImportError:
36 36
     try:
37 37
         from urllib3.exceptions import SubjectAltNameWarning
@@ -44,5 +44,5 @@ def squelch_warnings(insecure_requests=True):
44 44
         warnings.filterwarnings('ignore', category=SubjectAltNameWarning)
45 45
     if InsecurePlatformWarning:
46 46
         warnings.filterwarnings('ignore', category=InsecurePlatformWarning)
47
-    if insecure_requests and InsecureRequestWarning):
47
+    if insecure_requests and InsecureRequestWarning:
48 48
         warnings.filterwarnings('ignore', category=InsecureRequestWarning)

+ 1
- 0
test-requirements.txt View File

@@ -0,0 +1 @@
1
+flake8>=2.2.4,<=2.4.1

Loading…
Cancel
Save