Skip to content

Commit cfd881a

Browse files
committed
[py] webkitgtk: log_path -> log_output
1 parent 2dcac9f commit cfd881a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: py/selenium/webdriver/webkitgtk/service.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@ class Service(service.Service):
2828
:param executable_path: install path of the WebKitWebDriver executable, defaults to `WebKitWebDriver`.
2929
:param port: Port for the service to run on, defaults to 0 where the operating system will decide.
3030
:param service_args: (Optional) List of args to be passed to the subprocess when launching the executable.
31-
:param log_path: (Optional) File path for the file to be opened and passed as the subprocess stdout/stderr handler.
31+
:param log_output: (Optional) File path for the file to be opened and passed as the subprocess stdout/stderr handler.
3232
:param env: (Optional) Mapping of environment variables for the new process, defaults to `os.environ`.
3333
"""
3434

3535
def __init__(
3636
self,
3737
executable_path: str = DEFAULT_EXECUTABLE_PATH,
3838
port: int = 0,
39-
log_path: typing.Optional[str] = None,
39+
log_output: typing.Optional[str] = None,
4040
service_args: typing.Optional[typing.List[str]] = None,
4141
env: typing.Optional[typing.Mapping[str, str]] = None,
4242
**kwargs,
4343
) -> None:
4444
self.service_args = service_args or []
45-
log_file = open(log_path, "wb") if log_path else None
45+
log_output = open(log_output, "wb")
4646
super().__init__(
4747
executable_path=executable_path,
4848
port=port,
49-
log_file=log_file,
49+
log_output=log_output,
5050
env=env,
5151
**kwargs,
5252
)

0 commit comments

Comments
 (0)