Skip to content

Commit 6684096

Browse files
committed
[py] Fix redundant timeout setting
1 parent b4cd3f0 commit 6684096

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

py/selenium/webdriver/remote/client_config.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,14 @@ def __init__(
9797
self.proxy = proxy
9898
self.ignore_certificates = ignore_certificates
9999
self.init_args_for_pool_manager = init_args_for_pool_manager or {}
100-
self.timeout = timeout
100+
self.timeout = socket.getdefaulttimeout() if timeout is None else timeout
101101
self.username = username
102102
self.password = password
103103
self.auth_type = auth_type
104104
self.token = token
105105
self.user_agent = user_agent
106106
self.extra_headers = extra_headers
107107

108-
self.timeout = socket.getdefaulttimeout() if timeout is None else timeout
109-
110108
self.ca_certs = (
111109
(os.getenv("REQUESTS_CA_BUNDLE") if "REQUESTS_CA_BUNDLE" in os.environ else certifi.where())
112110
if ca_certs is None

0 commit comments

Comments
 (0)