From e8953ce4dd3b91ac3aa879171fa0a8b07caee643 Mon Sep 17 00:00:00 2001 From: symonk Date: Thu, 16 Mar 2023 19:07:58 +0000 Subject: [PATCH] [py]: pass default to `pop` when parsing service popen_kw --- py/selenium/webdriver/common/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/selenium/webdriver/common/service.py b/py/selenium/webdriver/common/service.py index 958e2768ef64b..bd27832ca9b2f 100644 --- a/py/selenium/webdriver/common/service.py +++ b/py/selenium/webdriver/common/service.py @@ -198,7 +198,7 @@ def _start_process(self, path: str) -> None: """ cmd = [path] cmd.extend(self.command_line_args()) - close_file_descriptors = self.popen_kw.pop("close_fds") or system() != "Windows" + close_file_descriptors = self.popen_kw.pop("close_fds", None) or system() != "Windows" try: self.process = subprocess.Popen( cmd,