From 9de853d91adeca219d8230fe73ca7e579f769999 Mon Sep 17 00:00:00 2001 From: symonk Date: Sun, 19 Jun 2022 11:30:26 +0100 Subject: [PATCH] [py]: avoid unnecessary concatenation of sequences in `get_remote_connection` --- py/selenium/webdriver/remote/webdriver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/remote/webdriver.py b/py/selenium/webdriver/remote/webdriver.py index e4f1740523810..7ae15e15d3275 100644 --- a/py/selenium/webdriver/remote/webdriver.py +++ b/py/selenium/webdriver/remote/webdriver.py @@ -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