From ed64af0c59a8dd4b7e46968a61655e67008a14db Mon Sep 17 00:00:00 2001 From: Arthur Hanson Date: Fri, 27 Sep 2024 17:18:31 -0700 Subject: [PATCH] cleanup --- netbox/core/data_backends.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/netbox/core/data_backends.py b/netbox/core/data_backends.py index 488a5e61c..935cb3aa9 100644 --- a/netbox/core/data_backends.py +++ b/netbox/core/data_backends.py @@ -25,7 +25,7 @@ __all__ = ( logger = logging.getLogger('netbox.data_backends') -# These Proxy Methods are for handling socks connection proxy +# These Proxy Methods are for handling SOCKS connection proxy class ProxyHTTPConnection(HTTPConnection): use_rdns = False @@ -73,9 +73,7 @@ class rdnsProxyHTTPSConnectionPool(HTTPSConnectionPool): class ProxyPoolManager(PoolManager): - def __init__(self, proxy_url, timeout=5, num_pools=10, headers=None, - **connection_pool_kw): - + def __init__(self, proxy_url, timeout=5, num_pools=10, headers=None, **connection_pool_kw): # python_socks uses rdns param to denote remote DNS parsing and # doesn't accept the 'h' or 'a' in the proxy URL cleaned_proxy_url = proxy_url