Skip to content

Commit 0a17d01

Browse files
committed
[py]: Convert accidental string concatenations to a single string
1 parent dc52e29 commit 0a17d01

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

py/selenium/webdriver/common/bidi/cdp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ def _handle_cmd_response(self, data):
276276
# into a CDP object.
277277
try:
278278
_ = cmd.send(data["result"])
279-
raise InternalError("The command's generator function " "did not exit when expected!")
279+
raise InternalError("The command's generator function did not exit when expected!")
280280
except StopIteration as exit:
281281
return_ = exit.value
282282
self.inflight_result[cmd_id] = return_

py/selenium/webdriver/firefox/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def get_full_page_screenshot_as_file(self, filename) -> bool:
160160
"""
161161
if not filename.lower().endswith(".png"):
162162
warnings.warn(
163-
"name used for saved screenshot does not match file " "type. It should end with a `.png` extension",
163+
"name used for saved screenshot does not match file type. It should end with a `.png` extension",
164164
UserWarning,
165165
)
166166
png = self.get_full_page_screenshot_as_png()

py/selenium/webdriver/remote/webdriver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ def get_screenshot_as_file(self, filename) -> bool:
795795
"""
796796
if not str(filename).lower().endswith(".png"):
797797
warnings.warn(
798-
"name used for saved screenshot does not match file " "type. It should end with a `.png` extension",
798+
"name used for saved screenshot does not match file type. It should end with a `.png` extension",
799799
UserWarning,
800800
)
801801
png = self.get_screenshot_as_png()

py/selenium/webdriver/remote/webelement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def screenshot(self, filename) -> bool:
341341
"""
342342
if not filename.lower().endswith(".png"):
343343
warnings.warn(
344-
"name used for saved screenshot does not match file " "type. It should end with a `.png` extension",
344+
"name used for saved screenshot does not match file type. It should end with a `.png` extension",
345345
UserWarning,
346346
)
347347
png = self.screenshot_as_png

0 commit comments

Comments
 (0)