Skip to content

Commit 9de853d

Browse files
committed
[py]: avoid unnecessary concatenation of sequences in get_remote_connection
1 parent ab456d1 commit 9de853d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def get_remote_connection(capabilities, command_executor, keep_alive, ignore_loc
130130
from selenium.webdriver.safari.remote_connection import SafariRemoteConnection
131131
from selenium.webdriver.firefox.remote_connection import FirefoxRemoteConnection
132132

133-
candidates = [RemoteConnection] + [ChromiumRemoteConnection, SafariRemoteConnection, FirefoxRemoteConnection]
133+
candidates = [RemoteConnection, ChromiumRemoteConnection, SafariRemoteConnection, FirefoxRemoteConnection]
134134
handler = next(
135135
(c for c in candidates if c.browser_name == capabilities.get('browserName')),
136136
RemoteConnection

0 commit comments

Comments
 (0)