Skip to content

Commit ec2fd00

Browse files
committed
[py] fix lint errors
1 parent 3bd4b11 commit ec2fd00

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

py/selenium/webdriver/chromium/options.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def headless(self) -> bool:
143143
"""
144144
warnings.warn(
145145
"headless property is deprecated, instead check for '--headless' in arguments",
146-
DeprecationWarning, stacklevel=2
146+
DeprecationWarning,
147+
stacklevel=2
147148
)
148149
return "--headless" in self._arguments
149150

@@ -159,7 +160,8 @@ def headless(self, value: bool) -> None:
159160
"""
160161
warnings.warn(
161162
"headless property is deprecated, instead use add_argument('--headless') or add_argument('--headless=new')",
162-
DeprecationWarning, stacklevel=2
163+
DeprecationWarning,
164+
stacklevel=2
163165
)
164166
args = {"--headless"}
165167
if value is True:

py/selenium/webdriver/firefox/options.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ def headless(self) -> bool:
108108
"""
109109
warnings.warn(
110110
"headless property is deprecated, instead check for '-headless' in arguments",
111-
DeprecationWarning, stacklevel=2
111+
DeprecationWarning,
112+
stacklevel=2
112113
)
113114
return "-headless" in self._arguments
114115

@@ -120,8 +121,7 @@ def headless(self, value: bool) -> None:
120121
value: boolean value indicating to set the headless option
121122
"""
122123
warnings.warn(
123-
"headless property is deprecated, instead use add_argument('-headless')",
124-
DeprecationWarning, stacklevel=2
124+
"headless property is deprecated, instead use add_argument('-headless')", DeprecationWarning, stacklevel=2
125125
)
126126
if value:
127127
self._arguments.append("-headless")

0 commit comments

Comments
 (0)