From d12315768ee364fa71fda686a7d2ed7a46cdef58 Mon Sep 17 00:00:00 2001 From: Lucas Tierney Date: Wed, 29 May 2019 08:31:41 -0500 Subject: [PATCH] [py] address flake8 issues Signed-off-by: Lucas Tierney --- py/selenium/webdriver/chrome/webdriver.py | 2 +- py/selenium/webdriver/firefox/webdriver.py | 1 + py/selenium/webdriver/ie/webdriver.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/py/selenium/webdriver/chrome/webdriver.py b/py/selenium/webdriver/chrome/webdriver.py index 5bc7cb989c3a2..97d12d13346f4 100644 --- a/py/selenium/webdriver/chrome/webdriver.py +++ b/py/selenium/webdriver/chrome/webdriver.py @@ -24,6 +24,7 @@ DEFAULT_PORT = 0 DEFAULT_SERVICE_LOG_PATH = None + class WebDriver(RemoteWebDriver): """ Controls the ChromeDriver and allows you to drive the browser. @@ -65,7 +66,6 @@ def __init__(self, executable_path="chromedriver", port=DEFAULT_PORT, warnings.warn('service_log_path has been deprecated, please pass in a Service object', DeprecationWarning, stacklevel=2) - if chrome_options: warnings.warn('use options instead of chrome_options', DeprecationWarning, stacklevel=2) diff --git a/py/selenium/webdriver/firefox/webdriver.py b/py/selenium/webdriver/firefox/webdriver.py index ac53ef3962f51..b0655dc8f536b 100644 --- a/py/selenium/webdriver/firefox/webdriver.py +++ b/py/selenium/webdriver/firefox/webdriver.py @@ -36,6 +36,7 @@ DEFAULT_SERVICE_LOG_PATH = None + class WebDriver(RemoteWebDriver): CONTEXT_CHROME = "chrome" diff --git a/py/selenium/webdriver/ie/webdriver.py b/py/selenium/webdriver/ie/webdriver.py index 76c38bcb26be7..c15fc0cc80b4f 100644 --- a/py/selenium/webdriver/ie/webdriver.py +++ b/py/selenium/webdriver/ie/webdriver.py @@ -14,6 +14,8 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. +import warnings + from selenium.webdriver.remote.webdriver import WebDriver as RemoteWebDriver from .service import Service from .options import Options