Skip to content

Commit a7ddeca

Browse files
committed
[py]: Remove redundant return clauses, use snake_case for some private proxy methods
1 parent c21d220 commit a7ddeca

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

py/selenium/webdriver/common/proxy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ def socks_version(self, value) -> None:
319319
self.proxyType = ProxyType.MANUAL
320320
self.socksVersion = value
321321

322-
def _verify_proxy_type_compatibility(self, compatibleProxy):
323-
if self.proxyType != ProxyType.UNSPECIFIED and self.proxyType != compatibleProxy:
324-
raise Exception(f"Specified proxy type ({compatibleProxy}) not compatible with current setting ({self.proxyType})")
322+
def _verify_proxy_type_compatibility(self, compatible_proxy):
323+
if self.proxyType != ProxyType.UNSPECIFIED and self.proxyType != compatible_proxy:
324+
raise Exception(f"Specified proxy type ({compatible_proxy}) not compatible with current setting ({self.proxyType})")
325325

326326
def add_to_capabilities(self, capabilities):
327327
"""

py/selenium/webdriver/remote/switch_to.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def window(self, window_name) -> None:
132132
driver.switch_to.window('main')
133133
"""
134134
self._w3c_window(window_name)
135-
return
136135

137136
def _w3c_window(self, window_name):
138137
def send_handle(h):

0 commit comments

Comments
 (0)