Skip to content

Commit

Permalink
[py]: avoid unnecessary concatenation of sequences in `get_remote_con…
Browse files Browse the repository at this point in the history
…nection`
  • Loading branch information
symonk committed Jun 19, 2022
1 parent ab456d1 commit 9de853d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_remote_connection(capabilities, command_executor, keep_alive, ignore_loc
from selenium.webdriver.safari.remote_connection import SafariRemoteConnection
from selenium.webdriver.firefox.remote_connection import FirefoxRemoteConnection

candidates = [RemoteConnection] + [ChromiumRemoteConnection, SafariRemoteConnection, FirefoxRemoteConnection]
candidates = [RemoteConnection, ChromiumRemoteConnection, SafariRemoteConnection, FirefoxRemoteConnection]
handler = next(
(c for c in candidates if c.browser_name == capabilities.get('browserName')),
RemoteConnection
Expand Down

0 comments on commit 9de853d

Please sign in to comment.