[py] Modernise conditionals
@@ -56,10 +56,10 @@ class WebDriver(ChromiumDriver):
warnings.warn('executable_path has been deprecated, please pass in a Service object',
DeprecationWarning, stacklevel=2)
- if options is not None and options.use_chromium:
+ if options and options.use_chromium:
executable_path = "msedgedriver"
- if service is None:
+ if not service:
service = Service(executable_path, port, service_args, service_log_path)
super(WebDriver, self).__init__(DesiredCapabilities.EDGE['browserName'], "ms",
