Skip to content

Commit

Permalink
[py]: Remove redundant return clauses, use snake_case for some privat…
Browse files Browse the repository at this point in the history
…e proxy methods
  • Loading branch information
symonk committed Sep 3, 2022
1 parent c21d220 commit a7ddeca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions py/selenium/webdriver/common/proxy.py
Expand Up @@ -319,9 +319,9 @@ def socks_version(self, value) -> None:
self.proxyType = ProxyType.MANUAL
self.socksVersion = value

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

def add_to_capabilities(self, capabilities):
"""
Expand Down
1 change: 0 additions & 1 deletion py/selenium/webdriver/remote/switch_to.py
Expand Up @@ -132,7 +132,6 @@ def window(self, window_name) -> None:
driver.switch_to.window('main')
"""
self._w3c_window(window_name)
return

def _w3c_window(self, window_name):
def send_handle(h):
Expand Down

0 comments on commit a7ddeca

Please sign in to comment.