Skip to content

Commit d23e97e

Browse files
committed
Fix whitespace to meet PEP8, moved include
1 parent 4f9bfc7 commit d23e97e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/core/virtual_host_scanner.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import time
88
from lib.core.discovered_host import *
99
import urllib3
10-
from urllib3.util import ssl_
1110

1211
DEFAULT_USER_AGENT = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) '\
1312
'AppleWebKit/537.36 (KHTML, like Gecko) '\
@@ -16,9 +15,11 @@
1615
urllib3.disable_warnings()
1716

1817
'''
18+
from urllib3.util import ssl_
19+
1920
_target_host = None
2021
_orig_wrap_socket = ssl_.ssl_wrap_socket
21-
22+
2223
def _ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,
2324
ca_certs=None, server_hostname=None,
2425
ssl_version=None, ciphers=None, ssl_context=None,
@@ -28,7 +29,7 @@ def _ssl_wrap_socket(sock, keyfile=None, certfile=None, cert_reqs=None,
2829
server_hostname=_target_host, ssl_version=ssl_version,
2930
ciphers=ciphers, ssl_context=ssl_context,
3031
ca_cert_dir=ca_cert_dir)
31-
32+
3233
ssl_.ssl_wrap_socket = _ssl_wrap_socket
3334
'''
3435

0 commit comments

Comments
 (0)